單目運算符重載爲成員函數 前++ 和後++的使用

//單目運算符重載爲成員函數 後++ 採用了啞元 #include<iostream> using namespace std; class CPoint { private: int x,y; public: CPoint(int a = 0,int b = 0){ x = a; y = b; } CPoin
相關文章
相關標籤/搜索