C++员工工资管理系统源代码

发布时间:2023-12-08 14:27:44   来源:文档文库   
字号:
.#include#include#include#include#include#includeusingnamespacestd;#defineNULL0#defineLENsizeof(structstudentintconstN=20;voidMenu(;voidPass(;intn=0;//定义一个全局变量统计职工人数//——--------->定义一个职工信息的结构体structstudent{charname[N];//用来存放姓名charsex[N];//用来存放性别longid;//用来存放编号floatpaid[3];//用来存放工资inttotal;//用来存放总工资structstudent*next;};//-------------->职工类classInformation{public:Information(;//构造函数.~Information(;//析构函数.student*creat(;//建立链表voidoutput(student*head;//显示职工信息intcount(student*head;//定义函数count(统计职工总数student*insert(student*head;//指针函数*insert(用来添加职工信息.student*cancel(student*head,longid;//指针函数*cancel(用来删除职工信息.student*find(student*head,longid;//指针函数*find(用来查找职工信息.student*modify(student*head,longid;//指针函数*modife(用来修改职工的信息.voidpaixu(student*head;//定义paixu(函数将职工的总额从大到小排列并输出voidaverage(student*head;//定义职工工资平均值的函数voidsave(student*head;//保存文件信息student*Read(;//读取文件信息private:word专业资料
.student*p1,*p2,*p3,*head,st;};Information::Information({cout<<"******************************************************************************\n";cout<<"------------------------<<使>>------------------------\n";cout<<"******************************************************************************\n\n";}Information::~Information({cout<<"¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤\n";cout<<"\n";cout<<"\n";cout<<"\n";cout<<"\n";cout<<"------------------------<<使>>------------------------\n";cout<<"\n";cout<<"\n";cout<<"使\n";cout<<"\n";cout<<"\n";cout<<"\n";cout<<"\n";cout<<"¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤\n";}word专业资料

本文来源:https://www.2haoxitong.net/k/doc/6da90aa07ed5360cba1aa8114431b90d6c85898b.html

《C++员工工资管理系统源代码.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式