(一)计算两点之间的距离(友元函数)

#include<iostream> #include<cmath> #define OK 1 using namespace std; class Point { public: Point(int xx=0,int yy=0) { X=xx; Y=yy; } int GetX() { return X; } int GetY() { return Y; } friend float fDist
相关文章
相关标签/搜索