我从Mark Joshi的书上看到:The rule of three. It says that if we need any one of copy constructor, destructor and assignment operator then we need all three.
回复:一个c++的技术问题,请各位指点....
所有跟帖:
•
C++要仔细manage resources, 比如memory, file, connection
-东渡。-
♂
(216 bytes)
()
11/14/2007 postreply
07:28:10
•
非常实用, thanks.
-fearcpatest-
♀
(0 bytes)
()
11/14/2007 postreply
10:15:42
•
多谢,不过不是很明白...
-澳洲老土-
♂
(429 bytes)
()
11/14/2007 postreply
13:45:17