#include 〈iomanip>#include 〈iostream>#include 〈fstream>#include 〈malloc
h>#include #include 〈string
h>#define NULL 0int const N=20;#define LEN sizeof(struct student)using namespace std;void Menu();void Pass();int n=0; //定义一个全局变量统计职工人数//-—----——-—-〉定义一个职工信息的结构体struct student{char name[N]; //用来存放姓名char sex[N]; //用来存放性别char zhiwu[N]; //用来存放职务char bumen[N]; // 用来存放所在部门long id; //用来存放编号float paid; //用来存放工资int total; //用来存放总工资struct student *next;};//—-—-—-—-—————->职工类class Information{ public: student *creat(); //建立链表 void output(student *head); //显示职工信息 int count(student *head); //定义函数 count()统计职工总数 student *insert(student*head); //指针函数*insert()用来添加职工信息
student *cancel(student *head,long id); //指针函数*cancel()用来删除职工信息
student *find(student *head,long id); //指针函数*find()用来查找职工信息
student *modify