#include
using namespace std;
const int p=3;
class SimpleCircle
{
public:
SimpleCircle();
SimpleCircle(int r1):radius(r1){} //定义一个有参构造函数
int circleference();
int area();
private:
int radius;
};
SimpleCircle::SimpleCircle()
{
}
int SimpleCircle::circleference()
{
return 2*p*radius;
}
int SimpleCircle::area()
{
return p*radius*radius;
}
void main()
{
int radius;
cout<<"please put in the radius"<
SimpleCircle a(radius); //少了分号
SimpleCircle*itsradius;
itsradius=&a;
cout<<"circleference is:"<
抱歉,看不懂呀!