本文介绍了什么是深拷贝,浅拷贝和bitwises拷贝。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 什么是深拷贝,浅拷贝和按位拷贝,成员拷贝? 和它们之间有什么区别? 请帮助 vaibhavwhat is Deep Copy, Shallow copy and Bitwise copy, Memberwise copy?and what is the difference between them?pls helpvaibhav推荐答案 什么是家庭作业问题?请参阅此常见问题解答: http://parashift.com/c++-faq-lite/ho...t.html#faq-5.2 肯定谷歌可以帮到你。 干杯! - mWhat is a homework question? See this FAQ: http://parashift.com/c++-faq-lite/ho...t.html#faq-5.2Surely google can help you.Cheers! --M 什么是家庭作业问题?请参阅此常见问题解答: What is a homework question? See this FAQ: 这听起来不像是家​​庭作业。这个问题没有包含在C ++ FAQ中。我无法快速找到一个有正当解释的链接。 答案并非完全无关紧要(例如:对于哪些对象是按位的?/ b $ b副本是否合适?何时成员副本浅,深??)。 BTW,复制构造函数几乎不需要实现,但是应该将设为私有(没有实现)。 祝你好运, Roland PibingerIt doesn''t sound like homework. The question is not covered in the C++FAQ. I cannot quickly find a link with decent explanations. Theanswers are not entirely trivial (e.g.: For which objects is a bitwisecopy appropriate? When is a memberwise copy shallow, when deep? ...).Nobody should hold back answers.BTW, copy constructors almost never need to be implemented but shouldbe made private (without implementation).Best regards,Roland Pibinger 为什么?难道不经常复制构造会产生语义感吗? - Nick Keighleywhy? Doesn''t copy construction very often make semantic sense?--Nick Keighley 这篇关于什么是深拷贝,浅拷贝和bitwises拷贝。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-24 06:56