schoolmanager.h

来自「一个人工管理系统」· C头文件 代码 · 共 74 行

H
74
字号
#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 + =
减小字号Ctrl + -
显示快捷键?