欢迎来到天天文库
浏览记录
ID:50032691
大小:201.00 KB
页数:12页
时间:2020-03-04
《职工档案管理程序.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、#include#include#include#defineM100structzhigong{charbanhaoflOl;charxingming[10];charxingbie[4];charchushengriqi[12J;charjiguan[2()];charminzuf20];charzhengzhimianmao[20];charzhicheng[20];charzhiwu[20J;doublegongzi;};structzhigongarra
2、nge,zhigong[M];FILE*fp;charnumstr[20J;intn=0;voidmenu();/***菜单.***/voidK);/枠*录入信息粋*/voidjscxg();/***添加删除修改信息桂*/void3、ice;printf(nn);printf(nt***************************************************************口”)・printf(nt******************欢迎进入职T档案管理系统*********************“);■▲C#ftf4、printt(t水水水*水水水不术水水*,卜不术不,卜*水水*不卜水水*,卜水术水,卜水小水*朮,卜木•卜水,卜彳一卜*,卜*小*水彳一卜水,卜木•卜*,卜木小水水门);print5、f(nn);printf(utt※※※※※※※※孤【主菜单】※※※※※※※※※探tH);1、职T信息录入t°);探tn);printf(ntt探printf(ntt探printf(utt探※、何);printf(ntt探2、添加、删除、修改职工信息探tH);printf(ntt探※、曲”);printf("tt探3、查询※、心“);printf(Htt探探tu);printf(Htt探4、统计探tH);printf(ntt探※、何);prin6、tf(ntt探5、浏览信息※、曲“);printf(Htt济探tn);printf(Htt探6、退出※、何);printf(Htt探※、何);printf(ntt探探※※※※※※※※※※※※※※※※※※※※※※处岸);printf(”请选择项目:”);choice=getchar();getchar();system(”cis”);switch(choice){caseT:l「();break;case2:0scxg();break;case'3':cx();break;case4:fj();b7、reak;casdl();break;case6:exit(0);default:printf("输入错误,请重新选择!r,);Imenu();voidlr(){charch;intn;system(nclsn);if((fp=fopen(,,e:\zg.txtH,v+,,))==NULL){printf(ncantopenfilezg.txt");exit(O);/***如果文件为空,退出***/}printf(M请输入信息:”);n=0;while(n8、,n+1);gets(zhigong[n].bianhao);printfC1姓名:”);gets(zhigong[n].xingming);printf(“性别:”);gets(zhigong[n].xingbie);printf(n出生日期:”);gets(zhigong[n].chushengriqi);printfC籍贯:”);gets(zhigong[n].jiguan);printf(nK族:”);gets(zhigong[n].minzu);printfC1®:治面貌:”);gets(zhigong[n].9、zhengzhimianmao);printf(“职称:”);gets(zhigongfn].zhicheng);printfC*职务:”);gets(zhigongfn].zhiwu);printf(HT资:”);scanf(n%lf',&zhigong[n].gongzi);if(n>39)break;n++;p
3、ice;printf(nn);printf(nt***************************************************************口”)・printf(nt******************欢迎进入职T档案管理系统*********************“);■▲C#ftf
4、printt(t水水水*水水水不术水水*,卜不术不,卜*水水*不卜水水*,卜水术水,卜水小水*朮,卜木•卜水,卜彳一卜*,卜*小*水彳一卜水,卜木•卜*,卜木小水水门);print
5、f(nn);printf(utt※※※※※※※※孤【主菜单】※※※※※※※※※探tH);1、职T信息录入t°);探tn);printf(ntt探printf(ntt探printf(utt探※、何);printf(ntt探2、添加、删除、修改职工信息探tH);printf(ntt探※、曲”);printf("tt探3、查询※、心“);printf(Htt探探tu);printf(Htt探4、统计探tH);printf(ntt探※、何);prin
6、tf(ntt探5、浏览信息※、曲“);printf(Htt济探tn);printf(Htt探6、退出※、何);printf(Htt探※、何);printf(ntt探探※※※※※※※※※※※※※※※※※※※※※※处岸);printf(”请选择项目:”);choice=getchar();getchar();system(”cis”);switch(choice){caseT:l「();break;case2:0scxg();break;case'3':cx();break;case4:fj();b
7、reak;casdl();break;case6:exit(0);default:printf("输入错误,请重新选择!r,);Imenu();voidlr(){charch;intn;system(nclsn);if((fp=fopen(,,e:\zg.txtH,v+,,))==NULL){printf(ncantopenfilezg.txt");exit(O);/***如果文件为空,退出***/}printf(M请输入信息:”);n=0;while(n8、,n+1);gets(zhigong[n].bianhao);printfC1姓名:”);gets(zhigong[n].xingming);printf(“性别:”);gets(zhigong[n].xingbie);printf(n出生日期:”);gets(zhigong[n].chushengriqi);printfC籍贯:”);gets(zhigong[n].jiguan);printf(nK族:”);gets(zhigong[n].minzu);printfC1®:治面貌:”);gets(zhigong[n].9、zhengzhimianmao);printf(“职称:”);gets(zhigongfn].zhicheng);printfC*职务:”);gets(zhigongfn].zhiwu);printf(HT资:”);scanf(n%lf',&zhigong[n].gongzi);if(n>39)break;n++;p
8、,n+1);gets(zhigong[n].bianhao);printfC1姓名:”);gets(zhigong[n].xingming);printf(“性别:”);gets(zhigong[n].xingbie);printf(n出生日期:”);gets(zhigong[n].chushengriqi);printfC籍贯:”);gets(zhigong[n].jiguan);printf(nK族:”);gets(zhigong[n].minzu);printfC1®:治面貌:”);gets(zhigong[n].
9、zhengzhimianmao);printf(“职称:”);gets(zhigongfn].zhicheng);printfC*职务:”);gets(zhigongfn].zhiwu);printf(HT资:”);scanf(n%lf',&zhigong[n].gongzi);if(n>39)break;n++;p
此文档下载收益归作者所有