高级C语言作业,急求!!跪谢

发布网友

我来回答

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

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com