运算符重载 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
浙公网安备 33010602011771号