预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共14页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

#include<iostream>#include<string>#include<fstream>#include<iomanip>usingnamespacestd;doublesum,avarage;intamount=0;intab=0,cd=0,ef=0;ofstream*file[50];structxinxi{doublejiben;doublezhiwu;doublegangwei;doubleyiliao;doublegongji;doublesum;doublesum1;doubleavarage;structxinxi*next;};classworker{public:stringname;stringID;doublesum;doubleavarage;xinxisc1;classworker*next;};voidluru(worker*head);voidsearch1(worker*head);voidsearch2(worker*head);voidxianshi(worker*head);voidxiugai(worker*head);voidchazhao(worker*head);voidshanchu(worker*head);voidtianjia(worker*head);voidtongji(worker*head);voiddisplay();voidread(worker*head);voiddakai(worker*head);intmain(){system("colorff");intx;//boolflag2=0;/*do{do{cin>>x;if(x>=0&&x<=10)flag2=1;else{cout<<"~~~~~~~~~~~~指令错误!!!~~~~~~~~~~"<<endl;cout<<"请选择相应数字进行操作"<<endl;}}while(flag2==0)*/worker*head=newworker;head->next=NULL;while(1){display();cin>>x;if(x==1){cout<<"***************现在进行职工数据的录入*****************\n";luru(head);cout<<"输入的职工信息为:\n";xianshi(head);display();//break;}elseif(x==2){cout<<"***************现在进行职工数据的修改******************\n";xiugai(head);display();//break;//按姓名修改}elseif(x==3){cout<<"***************现在进行所有职工信息的显示*****************\n";xianshi(head);display();//break;//显示数据}elseif(x==4){charz;cout<<"*****************现在进行所有职工信息查找**************\n";cout<<"请选择查询方式\n";cout<<"(1).姓名查询方式(2).ID查询方式\n";cin>>z;while(z!='1'&&z!='2'){cout<<"**************指令错误********************\n";cout<<"(1).姓名查询方式(2).ID查询方式\n";cin>>z;}switch(z){case'1':search1(head);break;//按姓名查询case'2':search2(head);break;//按学号查询}display();//break;}elseif(x==5){co