2013年7月16日

摘要: class A{public: A() { cout<<"普通构造函数"<<endl; } A(const A& a) { cout<<"copy construct"<<endl; } ~A() { cout<<"deconstruct"<<endl; } A& operator=(const A &a) { cout<<"复制操作符"<<endl; return *this; }};A fA( 阅读全文
posted @ 2013-07-16 10:12 dyc0113 阅读(163) 评论(0) 推荐(0) 编辑

导航