摘要:
//拷贝构造函数: //函数参数传递时调用一次拷贝构造函数,给对象赋值时调用一次拷贝构造函数,对象作为参数传递后会被及时销毁。 #include #include using namespace std; ofstream out("HowMany2.out"); class HowMany2 { string name;//object identifier static... 阅读全文
posted @ 2017-07-22 23:20
Worty
阅读(391)
评论(0)
推荐(0)
浙公网安备 33010602011771号