摘要: #include using namespace std; class A { public: int x{ 0 }; A(int i) { x = i; } A operator =(int z)//注意这里返回值不是引用 { x = z; return *this; } ... 阅读全文
posted @ 2019-04-28 09:41 interim 阅读(138) 评论(0) 推荐(0) 编辑