#include<iostream>
using namespace std;
const double PI = 3.14;
class Circle {
//访问权限
public:
//属性
int m_r;//半径
//行为:获取圆的周长
double caculateZC()
{
return 2 * PI * m_r;
}
};
int main()
{
//通过具体的圆,创建对象(圆)
Circle cl;
cl.m_r = 10;
cout << "圆的周长为:" << cl.caculateZC() << endl;
system("pause");
return 0;
}