搜索资源列表
Areaandperimeter
- 定义一个点类,在此基础上派生圆类、球类、椭圆类、椭球体、圆柱体, 圆锥体;长方形,正方形,正方体,正方体。要求:计算各类形状的面积,表面积,体积。-Define a point class, on this basis, derived round classes, ball, oval classes, spheroidal, cylinder, cone rectangular, square, cube, cube. Requirements: calculate the area of
Lab12_2
- 要求计算正方体、球和圆柱3个几何体的表面积和体积。要求抽象出一个公共的基类Base,把它作为抽象类,在该类内定义求表面积和体积的纯虚函数。在抽象类中可以定义一个数据成员length,它可作为球的半径、正方体的边长或圆柱体底面积的半径。-Required to calculate cube, sphere and cylinder 3 geometry surface area and volume. Requires a common abstract base class Base, take