文件名称:22
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:560byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2、 编写一个程序计算出球、圆柱和圆锥的表面积和体积。
a) 要求:
i. 定义一个基类圆,至少含有一个数据成员半径;
ii. 定义基类的派生类球、圆柱、圆锥,都含有求表面积和体积的成员函数和输出函数。
iii. 定义主函数,求球、圆柱、圆锥的和体积。
-2, write a program to calculate the ball, cylindrical and conical surface area and volume. a) asked: i. defining a base class circle, has at least one data member radius ii. the definition of base class of derived classes sphere, cylinder, cone, surface area and volume contain a member of demand functions and output functions. iii. defines the main function, find the ball, cylinder, cone and sizes.
a) 要求:
i. 定义一个基类圆,至少含有一个数据成员半径;
ii. 定义基类的派生类球、圆柱、圆锥,都含有求表面积和体积的成员函数和输出函数。
iii. 定义主函数,求球、圆柱、圆锥的和体积。
-2, write a program to calculate the ball, cylindrical and conical surface area and volume. a) asked: i. defining a base class circle, has at least one data member radius ii. the definition of base class of derived classes sphere, cylinder, cone, surface area and volume contain a member of demand functions and output functions. iii. defines the main function, find the ball, cylinder, cone and sizes.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
22.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.