文件名称:S
介绍说明--下载内容均来自于网络,请自行研究使用
/*创建一个Circle类,包含数据成员Radius(半径)和设置半径的函数set,获取半径的函数get及计算周长和面积的函数。
然后定义主函数main,创建具有5个元素Circle的对象数组,将它们的半径设为1-5,然后计算每个圆的周长和面积。*/-/* Create a Circle class that contains the data members Radius (radius) and set the radius of the function set, get access to a function of radius and calculate the perimeter and area of the function. Then define the main function main, has five elements Circle create an array of objects, they are set to the radius of 1-5, and then calculate the perimeter and area of each circle.* /
然后定义主函数main,创建具有5个元素Circle的对象数组,将它们的半径设为1-5,然后计算每个圆的周长和面积。*/-/* Create a Circle class that contains the data members Radius (radius) and set the radius of the function set, get access to a function of radius and calculate the perimeter and area of the function. Then define the main function main, has five elements Circle create an array of objects, they are set to the radius of 1-5, and then calculate the perimeter and area of each circle.* /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
计算圆的面积.cpp