class point
{
public:
point();
~point();
point(float x,float y,float z);
private:
float m_x,m_y,m_z;
public:
float Distance(point& p);
//如果我定义为:
//float Distance(point p);
//有什么区别?
float GetX();
float GetY();
float GetZ();
point operator + (point& p);
point operator /(int time);
point operator = (point& p);
};
题目在注解中。谢谢。
{
public:
point();
~point();
point(float x,float y,float z);
private:
float m_x,m_y,m_z;
public:
float Distance(point& p);
//如果我定义为:
//float Distance(point p);
//有什么区别?
float GetX();
float GetY();
float GetZ();
point operator + (point& p);
point operator /(int time);
point operator = (point& p);
};
题目在注解中。谢谢。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货