文件名称:shape
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:240.15kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
相关搜索: write shape
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shape/64.ncb
shape/Debug/vc60.idb
shape/Debug/vc60.pdb
shape/Debug/64.pch
shape/Debug/64.ilk
shape/Debug/64.exe
shape/Debug/64.pdb
shape/Debug/64.obj
shape/64.plg
shape/64.dsp
shape/64.cpp
shape/64.opt
shape/64.dsw
shape/Debug
shape
shape/Debug/vc60.idb
shape/Debug/vc60.pdb
shape/Debug/64.pch
shape/Debug/64.ilk
shape/Debug/64.exe
shape/Debug/64.pdb
shape/Debug/64.obj
shape/64.plg
shape/64.dsp
shape/64.cpp
shape/64.opt
shape/64.dsw
shape/Debug
shape
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.