摘要: 1 #include 2 using namespace std; 3 4 class Good 5 { 6 public: 7 int member; 8 Good(int a): member(a) 9 {10 cout << "调用构造" << endl;11 }12 void show()13 {14 cout << member << endl;15 }16 Good operator+(const Good& obj)17 {18 return Good(m... 阅读全文
posted @ 2014-03-25 21:13 秋月的私语 阅读(200) 评论(0) 推荐(0) 编辑