算距离这个函数定义不对,还需要要另一个点的数据才可以
int Point::distance(Point &other){ int iDis = sqrt( pow((other.a - this->a), 2) + pow(other.b-this->b, 2) ); iDis = sqrt( iDis + pow(other.c-this->c, 2) );}
查书去
distance函数要求是成员函数么?