📄 gelie.h
字号:
class day
{
public:
day(int y=0,int m=0,int d=0);
~day();
day(day&one);
void Setday();
void Getday();
private:
int year,month,date;
};
class people
{
public:
people();
people(char*name,int number,char*sex,char*id,day bir);
~ people();
void Setpeople();
void Getpeople();
void operator==(people p1);
void operator=(people p2);
char id[20];int number;
private:
char name[20]; char sex;day birthday;
};
//student类的定义
class student : public people
{ public:
student();
student(char*name,int number,char*sex,char*id,day bir,char*classNO);
void Setstudent1();
void Setstudent2();
void Getstudent1();
void Getstudent2();
~student();
private:
char classNO[7];
};
//teacher类的定义
class teacher: virtual public people
{public:
teacher();
~teacher();
teacher(teacher&a);
void Setteacher1();
void Setteacher2();
void Getteacher1();
void Getteacher2();
void io_out();
private:
char principalship[11];char department[21];
};
//graduate类的定义
class graduate:virtual public student
{
public:
graduate();
~graduate();
void Setgraduate1();
void Setgraduate2();
void Getgraduate1();
void Getgraduate2();
private
:
char subject[21]; teacher teacheradviser;
};
//TA类的定义
class TA: public graduate,public teacher
{
public:
TA();
~TA();
void SetTA();
void GetTA();
private:
int time;float pay;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -