//全部代码、界面及注释#include#include#include#include#include#includechar mima[20],employname[10];int sl,k=1,lenth=0;char NAME[20];struct date {int year;int month;int day;};struct infor{char name1[20]; //姓名char sex1[3]; //性别char zhiwu1[10]; //职务char ID1[20]; //身份证号char brithday1[12]; //生日char address1[50]; //家庭住址char tele1[20]; // 号码 char idemployee1[20]; //工作编号char money1[5];}inf[100];void tiquxinxi() //提取信息{char e;int i;int j;ifstream myfile("d:\\q.txt",ios::nocreate);for(i=0;i<1000;i++){myfile.getline(inf[i].name1,11);if(strlen(inf[i].name1)<2) break;for(j=1;j<30;j++)if(inf[i].name1[j]==' ') inf[i].name1[j]='\0';myfile.get(e);myfile.getline(inf[i].sex1,4);for(j=1;j<30;j++)if(inf[i].sex1[j]==' ') inf[i].sex1[j]='\0';myfile.get(e);myfile.getline(inf[i].zhiwu1,11);for(j=1;j<30;j++)if(inf[i].zhiwu1[j]==' ') inf[i].zhiwu1[j]='\0';myfile.get(e);myfile.getline(inf[i].idemployee1,6);for(j=1;j<30;j++)if(inf[i].idemployee1[j]==' ') inf[i].idemployee1[j]='\0';myfile.get(e);myfile.getline(inf[i].ID1,21);for(j=1;j<30;j++)if(inf[i].ID1[j]==' ') inf[i].ID1[j]='\0';myfile.get(e);myfile.getline(inf[i].brithday1,11);myfile.get(e);myfile.getline(inf[i].address1,31);for(j=1;j<30;j++)if(inf[i].address1[j]==' ') inf[i].address1[j]='\0';myfile.get(e);myfile.getline(inf[i].tele1,13);for(j=1;j<30;j++)if(inf[i].tele1[j]==' ') inf[i].tele1[j]='\0';myfile.get(e);myfile.getline(inf[i].money1,6);for(j=1;j<30;j++)if(inf[i].money1[j]==' ') inf[i].money1[j]='\0';myfile.get(e);}lenth=i;myfile.close();}class people //人的类{protected:char name[20]; //姓名char sex[2]; //性别char zhiwu[10]; //职务char ID[20]; //身份证号date brithday; //生日char address[50]; //家庭住址char tele[20]; // 号码 char idemployee[20]; //工作编号double money;public:void input_inf() //输入信息函数{ofstream outfile("d:\\q.txt",ios::in|ios::app); //建立并追加方...