摘要:
/* 运算符using namespace std;class MyInt{ private: int m_i; public: friend void Printf(MyInt const &obj); friend ostream operatorm_i); return *this; } const MyInt operator++(int) { MyInt temp=*this; ++(*this); return temp; } MyInt &operator--() { --(this->m_i); return *this; } const MyInt op 阅读全文
posted @ 2013-10-12 20:48
aswater
阅读(395)
评论(0)
推荐(0)

浙公网安备 33010602011771号