usingnamespacestd;intk;classperson{private:charnum[10];//编号chartype[20];//种类charname[20];//姓名charsex[10];//性别第2页共11页第1页共11页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第2页共11页charage[10];//年龄charstaff[20];//职务charzhichen[20];//职称charzzmm[20];//政治面貌charzgxl[20];//最高学历charrzsj[20];//任职时间charlysj[30];//来院时间staticintbianhao;//计数器public:voidsetperson(char*type1,char*name1,char*sex1,char*age1,char*staff1,char*zhichen1,char*zzmm1,char*zgxl1,char*rzsj1,char*lysj1);//构造函数staticint&getbianhao(){returnbianhao;}char*gettype(){returntype;}char*getname(){returnname;}char*getsex(){returnsex;}char*getage(){returnage;}char*getstaff(){returnstaff;}char*getzhichen(){returnzhichen;}char*getzzmm(){returnzzmm;}char*getzgxl(){returnzgxl;}char*getrzsj(){returnrzsj;}char*getlysj(){returnlysj;}char*getnum(){returnnum;}voidtjry();voidfind();voidoutput();voiddel();voidxiugai();voidtongji();};personp[100];personpp[100];intk1;intperson::bianhao=0;voidperson::setperson(char*type1,char*name1,char*sex1,char*age1,char*staff1,char*zhichen1,char*zzmm1,char*zgxl1,char*rzsj1,char*lysj1){intstaticj=1;strcpy(type,type1);strcpy(name,name1);strcpy(sex,sex1);strcpy(age,age1);strcpy(staff,staff1);strcpy(zhichen,zhichen1);strcpy(zzmm,zzmm1);第3页共11页第2页共11页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第3页共11页strcpy(zgxl,zgxl1);strcpy(rzsj,rzsj1);strcpy(lysj,lysj1);bianhao++;ofstreamfile("添加人员.txt",ios_base::app);file<>pp[k].getnum();filem>>pp[k].gettype();filem>>pp[k].getname();filem>>pp[k].getsex();filem>>pp[k].getage();filem>>pp[k].getstaff();filem>>pp[k].getzhichen();filem>>pp[k].getzzmm();filem>>pp[k].getzgxl();filem>>pp[k].getrzsj();filem>>pp[k].getlysj();if(strcmp(pp[k].gettype(),"行政人员")==0||strcmp(pp[k].gettype(),"教师")==0||strcmp(pp[k].gettype(),"一般员工")==0)a++;if(strcmp(pp[k].getzzmm(),"党员")==0)b++;if(strcmp(pp[k].getsex(),"nv")==0)c++;if(strcmp(pp[k].getzgxl(),"boshi")==0)第4页共11页第3页共11页编号:时间:2021年x月x日书山有路勤为径,学海无涯...