pta c++ 点到原点的距离(继承) (50分)
摘要:
给出下面的一个基类框架: class Point_1D { protected: float x;//1D 点的x坐标 public: Point_1D(float p = 0.0); float distance( );//计算当前点到原点的距离 } 以Point_1D为基类建立一个派生类Poin 阅读全文
posted @ 2020-05-30 21:15
xwwer
阅读(748)
评论(0)
推荐(0)
浙公网安备 33010602011771号