简单问题
class point{
public:
point(float x=0,float y=0);
void setpoint(float,float);
float getX() const {return x;}
float getY() const {return y;}
friend ostream& operator <<(ostream &,const point &);//此处为何声明为const?
protected:
float x,y;
};