文件名称:Point-x-y
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2013-01-07
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
先建立一个点类Point,包含数据成员x,y(坐标点)。以它为基类,派生出圆类Circle,增加数据成员radius(半径),再以Cirlcle类为直接基类,派生出圆柱体类Cylinder,再增加数据成员height(高)。要求:
(1)每个类都有构造函数、用于从键盘获取数据的成员函数set(),用于显示数据的成员函数display()。
(2)用虚函数输出各类对象信息
-First establish a point class Point contains data members x, y (coordinate points). The base class for derived round class Circle, increased data member radius (radius), then Cirlcle class direct base class, the cylinder class derived Cylinder, additional data members height (H). Requirements: (1) for each class constructor, used to obtain data from the keyboard member function set () member function display (used to display data). (2) virtual function to output all kinds of object information
(1)每个类都有构造函数、用于从键盘获取数据的成员函数set(),用于显示数据的成员函数display()。
(2)用虚函数输出各类对象信息
-First establish a point class Point contains data members x, y (coordinate points). The base class for derived round class Circle, increased data member radius (radius), then Cirlcle class direct base class, the cylinder class derived Cylinder, additional data members height (H). Requirements: (1) for each class constructor, used to obtain data from the keyboard member function set () member function display (used to display data). (2) virtual function to output all kinds of object information
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
| ||
Point-x | y.doc |