C++点类派生三角形求面积,周长,构造析构函数

仅供参考 #include <iostream> #include <math.h> using namespace std; class myPoint { public: myPoint(double x0 = 0.0, double y0 = 0.0) :x(x0), y(y0) {} myPoint(myPoint &np) :x(np.x), y(np.y) {} double G
相关文章
相关标签/搜索