项目三

程序:ios /* 【项目3 - 点类派生直线类】 定义点类Point,并以点类为基类,派生出直线类Line,从基类中继承的点的信息表示直线的中点。 请阅读下面的代码,并将缺乏的部分写出来。 */ #include<iostream> #include<Cmath> using namespace std; class Point //定义坐标点类 { public: Point():x(
相关文章
相关标签/搜索