运算符重载 C++ 编程思想
摘要:
class Integer{ int i;public: Integer(int ii) : i(ii) {} const Integer operator+(const Integer& rv) const { cout using namespace std;// Non-member functions:class Integer { long i; Integer* This() { return this;} public: Integer(long ll = 0) : i(ll) {} //No side effects... 阅读全文
posted @ 2013-09-12 16:57 unsigned 阅读(375) 评论(0) 推荐(0) 编辑