感觉vol1大半本书在将copy-constructor && operator=, 可能也有将其他的,但我有些c#的基础,如果相似的东西印象就不深了。
请问copy-constructor && operator=在实际工作中这么重要么?真地用得很多么?
感觉这两个东西比较烦,在c#可以自己写deep clone(或者override operator=)而不是用constructor来解决。
还请各位指点一二,多谢多谢!!
• 回复:一个c++的技术问题,请各位指点.... -cgl1991- ♂ (70 bytes) () 11/13/2007 postreply 23:35:04
• 多谢,多谢!!! -澳洲老土- ♂ (0 bytes) () 11/14/2007 postreply 02:19:09
• 回复:一个c++的技术问题,请各位指点.... -yitian81- ♀ (156 bytes) () 11/14/2007 postreply 02:33:19
• 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
• 作为一个小菜鸟,俺的感受是: -fearcpatest- ♀ (165 bytes) () 11/14/2007 postreply 04:14:22
• 说得不错,能认识这个就说明你一点都不菜! -澳洲老土- ♂ (0 bytes) () 11/14/2007 postreply 14:36:48
• 能被澳洲老土鼓励真是美得发晕!! -fearcpatest- ♀ (0 bytes) () 11/14/2007 postreply 18:01:28
• 有你fearcpatest的回帖俺都乐得抓狂!哈哈... -澳洲老土- ♂ (0 bytes) () 11/15/2007 postreply 03:43:53