c++换成C语言
class EmpList{
private:
Employee * head;
public:
EmpList();//构造函数
~EmpList();//析构函数
Employee* FileRead(char* file_name);
Employee* Insert(Employee* emp);//按员工编号节点有序插入
void ShowList();
Employee* CombineTheSameId(Employee*);//将工号相同职工的产量合并,返回新链
void DeleteChain(Employee*);//释放链表
Employee* InsertProduct(Employee*,Employee*);//按员工产品数量节点有序插入
Employee * ReverseList(Employee *p_head); //链表逆序,参考互联网
void OutPut(Employee*);
int* EmployeeCount(Employee* head);//具有相同产品数的职工计数,返回结果为一维数组
};
EmpList::EmpList()
{head=NULL;}
EmpList::~EmpList()
{DeleteChain(head);}