搜索资源列表
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
BOX
- 设计一个立方体类Box,它能计算体积和表面积,设计后自行测试。 私有数据:a(边长),volume(体积),area(表面积) 构造函数:1.Box(),2.Box(float r)
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
ex7
- 请用C++语言编写面向对象程序,实现柱体体积和表面积的计算(圆柱和四棱柱为必做内容,三棱柱为选做内容)。例如底面半径为2、高为4的圆柱,体积为50.27,表面积为75.40;以长为3、宽为2的长方形为底面,高为5的四棱柱,体积为30,表面积为62。-Please C++ written in object-oriented programming language to achieve calculate volume and surface area of the cylinder (cyli
Trival
- 一个关于等边三角形的类Trival如下,其中的属性包括三角形的bian,方法包括:默认构造方法、为bian指定初值的构造方法、获取三角形面积findArea()。试利用方法覆盖的知识,设计三棱柱体类TriCylinder。(其中findArea()为计算三棱柱体的表面积)-Equilateral triangle on a class Trival below, which properties include triangles bian, the method comprising: a d