#include<iostream>
using namespace std;
class Circle{
public:
void area_input()
{
cout<<"please input radius:";
cin>>radius;
}
void area_out()
{
cs=3.14 * radius * radius;
cout<<"the circle's cs is:"<<cs<<endl;
}
private:
double radius;
double cs;
}circle1;
int main()
{
circle1.area_input();
circle1.area_out();
return 0;
}
3.22
最新推荐文章于 2024-06-09 21:22:37 发布