摘要:
作用:防止带有一个参数的构造函数在默认情况下的隐式转换例子:#include <iostream>#include <cstdlib>using namespace std;class CPerson{public:int age;public:CPerson(int age){this->age = age;}};void main(){CPerson p1(10); -----1CPerson p2=20; -----2cout<<p1.age<<endl;cout<<p2.age<<endl;system(&q 阅读全文
posted @ 2011-09-13 21:01
誑逩の蝸犇
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号