搜索资源列表
yuanzhiti
- 函数功能:计算圆柱体的表面积和体积 输入:半径 高 方法:C++结构体实现-Function features: calculate the surface area and volume of a cylinder type: high radius method: C++ structures to achieve
22
- 2、 编写一个程序计算出球、圆柱和圆锥的表面积和体积。 a) 要求: i. 定义一个基类圆,至少含有一个数据成员半径; ii. 定义基类的派生类球、圆柱、圆锥,都含有求表面积和体积的成员函数和输出函数。 iii. 定义主函数,求球、圆柱、圆锥的和体积。 -2, write a program to calculate the ball, cylindrical and conical surface area and volume. a) asked: i. defining
BOX
- 设计一个立方体类Box,它能计算体积和表面积,设计后自行测试。 私有数据:a(边长),volume(体积),area(表面积) 构造函数:1.Box(),2.Box(float r) 设计一个立方体类Box,它能计算体积和表面积,设计后自行测试。 私有数据:a(边长),volume(体积),area(表面积) 构造函数:1.Box(),2.Box(float r) -It can calculate the volume and surface area, to desi
3
- 设计一个立方体类Box,能够计算并输出立方体的表面积和体积。 提示:定义一个立方体类Box,包含一个私有数据成员(立方体边长),两个公有函数(构造函数Box和计算并输出立方体的表面积和体积的函数show)。 -Design of a cube class Box, the output can be calculated and the surface area and volume of the cube. Tip: define a class cube Box, comprisin
cSharp-code-1
- 编写一个程序计算出球、圆柱和圆锥的表面积和体积源代码-Write a program that calculates the ball, cylindrical and tapered surface area and volume of source code
qiu
- “球体积和球表面积计算设计”。设计一个对话框,可以输入球的半径,输出球体积和球表面积。- Design and calculation of ball volume and surface area of a sphere . The design of a dialog box, you can enter the radius of the ball, the ball ball output volume and surface area.
JAVA
- 定义长方体类Cuboid,要求如下:(1)私有成员变量包括长length、宽width和高height;(2)构造方法包括一个公共的空构造方法,一个能够初始化所有成员变量的构造方法;(3)包括所有的setter和getter方法,其中setter方法要求对形参进行验证,例如长、宽和高都大于0;(4)功能方法包括计算表面积getArea()、计算体积getCubage()、判断是否正方体isCube()、输出该长方体的长宽高printCuboid()、绘制该长方体(给出提示信息即可)drawing