摘要:
我们来自己定义一个与系统默认拷贝构造函数一样的拷贝构造函数,看看它的内部是如何工作的! 代码如下:#include usingnamespacestd; classTest { public: Test(inttemp) { p1=temp; } Test(Test&c_t)//这里就是自定义的拷贝构造函数 { cout usingnamespacestd... 阅读全文
posted @ 2010-02-05 04:51
莫忆往西
阅读(213)
评论(0)
推荐(0)

浙公网安备 33010602011771号