摘要: 1 #include 2 using namespace std; 3 class Test1 4 { 5 public: 6 int m; 7 Test1(int n) { num = n; } //普通构造函数 8 void Show() 9 {10 cout << "private num = " << num <<endl;11 }12 private:13 int count;14 int num;15 int n;16 };17 class Test218 {19 public:20 exp... 阅读全文
posted @ 2014-03-04 20:27 秋月的私语 阅读(299) 评论(0) 推荐(0) 编辑