对于普通类型的对象来说,它们之间的复制是很简单的,例如: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