📄 employee.h
字号:
//=================================employee.h===============================================
extern int employee_number; //职工数;
class Employee //职工信息
{
public:
char ID[20]; //工作号码
char name[20]; //姓名;
char sex; //性别;
char edu_level; //学历;
char duty; //职务;
int year_Born; //出生年份;
int month_Born; //出生月份;
int year_W; //工作年份;
int month_W; //工作月份;
char tel[20]; //电话号码;
};
class Operat //职工信息管理类;
{
public:
Operat(); //构造函数,
Employee * Create(); //创建职工信息;
void display(); //显示职工信息;
void find1(); //查询职工信息;
void find2(); //查询职工信息;
void change(); //修改职工信息
void insert(); //插入职工信息;
void dele(); //删除职工信息;
};
class Sort //排序基类;
{
public:
virtual void sortf(Employee *,int ){}; //排序虚函数;
};
class BubbleSort:public Sort //冒泡排序子类;
{
public:
void sortf(Employee *,int);
};
class InsertSort:public Sort //折半查找排序子类;
{
public:
void sortf(Employee *,int);
};
class QuickSort:public Sort //快速排序子类;
{
public:
void sortf(Employee *,int);
void QSort (Employee * , int , int );
int Partition (Employee *, int , int);
};
class HeapSort //堆排序子类;
{
public:
void sortf(Employee *,int);
void HeapAdjust (Employee *, int , int );
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -