01 2011 档案

摘要:#include class CPoint{private:int x,y;public:CPoint(int xx=0, int yy=0){x = xx;y = yy;}void disp(){cout<<"("<<x<<','<<y<<")"<<endl;}CPoint operator + (CPoint q){return CPoint(x+q.x,y+q.y);}CPoint ope... 阅读全文
posted @ 2011-01-19 05:40 莫忆往西 阅读(170) 评论(0) 推荐(0)