3.22
来源:互联网 发布:js和jsp的区别 编辑:程序博客网 时间:2024/05/04 02:48
#include <iostream>
using namespace std;
class Circle
{
public:
float Area();
Circle();
Circle(float r);
public:
float Radius;
};
Circle::Circle()
{
Radius=1.0;
}
Circle::Circle(float r)
{
Radius=r;
}
float Circle::Area()
{
return Radius*Radius*3.14;
}
int main()
{
Circle c1;
cout<<"圆1的面积:"<<c1.GetArea()<<endl;
return 0;}
0 0
- 3.22
- 3.22
- 3.22
- 3.22
- 【3.22】
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 3.22
- 短网址(ShortUrl)实现
- LINUX Shell脚本中点号和source命令
- C#委托基础4——泛型委托Func
- 测试了几个PHP框架
- hihoCoder 1075 开锁魔法III
- 3.22
- 深圳市盟奈特国际贸易有限公司
- 二维数组指针的使用
- 我的Linux安全保护
- python调用调用Linux命令
- 第二单元作业 2.29
- MySQL 备份与恢复
- R语言数据分析系列之五
- ORACLE-基础三(手动创建数据库)