摘要: class A{public: A(int arg1, int arg2); ~A(); A &operator = ( A &other); A operator + ( A &other);private: int a, b;};A::A(int arg1, int arg2){ a = arg1; b = arg2;}A::~A(){}A &A::operator=( A &other){ if (this == &other) { return *this; } this->a = other.a; ... 阅读全文
posted @ 2013-07-22 17:31 没出没 阅读(979) 评论(0) 推荐(0) 编辑