2011年11月14日
摘要: #include <iostream>using namespace std;class Point{public:Point(float=0,float=0);void setPoint(float,float);float getX() const {return x;}float getY() const {return y;}friend ostream & operator<<(ostream &,const Point &);protected:float x,y;};Point::Point(float a,float b){x=a 阅读全文
posted @ 2011-11-14 19:46 Gavin Dai 阅读(2078) 评论(0) 推荐(0) 编辑