会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
BloodAndBone
CnBlogs
Home
New Post
Contact
Admin
Subscription
2011年5月10日
C++ 拷贝构造函数(深拷贝,浅拷贝)
对于普通类型的对象来说,它们之间的复制是很简单的,例如:int a=88;int b=a; 而类对象与普通对象不同,类对象内部结构一般较为复杂,存在各种成员变量。下面看一个类对象拷贝的简单例子。 #include using namespace std;class CExample...
Read More
posted @ 2011-05-10 22:06 BloodAndBone
Views(694)
Comments(0)
Diggs(0)
Edit
公告