|
TOfinefineboy
It is precisely because of what you said that the behavior the landlord said.
In C ++, value semantics is the basis. This is different from many other object-oriented languages. Pointers are used to express reference semantics (pointers themselves are also values ...). The problem the landlord said is actually because of C ++ It is value semantic behavior, and what he wants is to quote something semantic. If you want this kind of thing, you can only implement it yourself. C ++ provides enough support to do this. |
|