摘要: 1 #include 2 3 using namespace std; 4 //解析和析构函数的调用 5 class Test 6 { 7 public: 8 Test() 9 { 10 cout"; 53 Test t1;//无参函数的赋值 54 cout\n"; 56 Test t2(1,3);//两个形参的函数调用... 阅读全文
posted @ 2017-03-16 21:37 小陈同学啦 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 using namespace std; 4 //解析和析构函数的调用 5 class Test 6 { 7 public: 8 Test() 9 { 10 cout"; 41 Test t1;//无参函数的赋值 42 cout"; 44 Test t2(1,3);//两个形参的函数调用 4... 阅读全文
posted @ 2017-03-16 20:55 小陈同学啦 阅读(275) 评论(0) 推荐(0) 编辑