作业帮 > 综合 > 作业

各位帮忙找一下错误,改正一下.

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/05/03 23:47:32
各位帮忙找一下错误,改正一下.
#include
using namespace std;
//类的定义
class People{
public:
People(int Num, char Sex, int Bir, int Id);
int GetNum();
char GetSex();
int GetBir();
int GetId();
~People(){};
private:
int num;
char sex[10];
int bir;
int id;
};
//成员函数的具体实现
inline People::GetNum (){
cout
各位帮忙找一下错误,改正一下.
1.每一个函数的编写都没有写返回值.
inline People::GetNum (){
cout