📄 schoolmanager.h
字号:
#include <assert.h>
enum SEX{MAN,WOMAN};
class Employee
{
private:
int nID;
int bSex;
float fSalary;
char szName[20];
char szBirthdate[20];
char szWorkDate[20];
public:
Employee();
Employee(char*Name,int Sex,char*Birthdate,char*WorkDate,float Salary);
virtual int Show();
int IsName(char*name);
~Employee();
};
class RecordSet
{
private:
static unsigned m_NextSetID;
unsigned m_SetID;
unsigned m_ValidateCnt;
RecordSet* m_NextSet;
Employee* m_Records[1024];
public:
static RecordSet *m_ActiveSet;
static Employee** m_CurRecord;
RecordSet();
int AddNewRecord(Employee*person);
int Qurey(char *name);
int FindNextRecord(char*name);
int ViewAll();
int ReplaceRecord(Employee*person);
int DeleteRecord();
virtual ~RecordSet();
};
unsigned RecordSet::m_NextSetID=0;
RecordSet *RecordSet::m_ActiveSet=0;
Employee **RecordSet::m_CurRecord=0;
class Teacher:public Employee
{
private:
char (*m_Lessions)[16];
int m_nCount;
public:
Teacher();
int Show();
~Teacher();
};
class Officer:public Employee
{
private:
char m_Position[32];
public:
Manager();
int Show();
};
class Staff:public Employee
{
private:
char m_Work[32];
public:
Staff();
int Show();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -