文件名称:shape
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 240kb
- 下载次数:
- 1次
- 提 供 者:
- 大*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Shape成为一个包含接口(供层次结构中的类使用)的抽象基类。从类Shape派生出二维形状类TwoDimensionalShape和三维形状类ThreeDimensionalShape,它们也都是抽象类,然后用虚函数print输出每个类的类型和维数。为了计算类层次结构中每个具体类的对象,这两个类中还要包括虚函数area和volume。最后再编写一个程序测试类Shape的层次结构-Shape into a contained interface (for the class hierarchy to use) an abstract base class. Derived from the class of two-dimensional shape of class Shape and three-dimensional shape of class TwoDimensionalShape ThreeDimensionalShape, they are abstract classes, and then use virtual function print the output for each class type and dimension. To calculate the class hierarchy for each specific class of objects, these two classes should also include the virtual function area and volume. Finally, write a program to test class hierarchy Shape
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shape\64.ncb
.....\Debug\vc60.idb
.....\.....\vc60.pdb
.....\.....\64.pch
.....\.....\64.ilk
.....\.....\64.exe
.....\.....\64.pdb
.....\.....\64.obj
.....\64.plg
.....\64.dsp
.....\64.cpp
.....\64.opt
.....\64.dsw
.....\Debug
shape
.....\Debug\vc60.idb
.....\.....\vc60.pdb
.....\.....\64.pch
.....\.....\64.ilk
.....\.....\64.exe
.....\.....\64.pdb
.....\.....\64.obj
.....\64.plg
.....\64.dsp
.....\64.cpp
.....\64.opt
.....\64.dsw
.....\Debug
shape