发布网友
共2个回答
热心网友
#include<iostream>
using namespace std;
class CPersion
{
protected:
string name;
int age;
int height;
double weight;
public:
CPerson()
{
this.height=180;
this.weight=90;
this.age=40;
this.name="李四";
}
void ShowInfo()
{
cout<<name<<endl;
cout<<age<<endl;
cout<<height<<endl;
cout<<weight<<endl;
}
void Measure()
{
//自己写吧。
}
};
int main()
{
return 0;
}
热心网友
gkjgtbtmagtu
kmagtja
@jmagu
jtdahma