33,311
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
using namespace std;
class Student{
public:
void StudentInfo(char* pNo, char* pName, char* pGender, int age);
void Dispaly();
private:
char no[20];
char name[20];
char gender[20];
int age;
};
void Student::StudentInfo(char* pNo, char* pName, char* pGender, int age){
}
void Student::Dispaly(){
cout << "学号:" << no << endl
<< "姓名:" << name << endl
<< "年纪:" << gender << endl
<< "年龄:" << age << endl;
}