freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語言實現(xiàn)職工管理系統(tǒng)-在線瀏覽

2025-05-25 05:22本頁面
  

【正文】 月(如199001):)。thisniyear=atoi(tempstr)。 fputs( ,fp)。 gets(thisneducation)。 fputs( ,fp)。 gets(thisnduty)。 fputs( ,fp)。 gets(thisnaddress)。 fputs( ,fp)。 gets(thisnphone)。 thisnnext=NULL。 system(cls)。 int i。 exit(1)。iI。sta[i].num,amp。sta[i].sex,amp。sta[i].iyear,amp。sta[i].duty,amp。sta[i].phone)。 printf(賬號已存在 【1】重新輸入 【2】退出系統(tǒng)\n)。 switch(getchar()) { case 39。:getchar()。 /*輸入不成功,返回值作為循環(huán)條件*/ case 39。:exit(1)。 } fclose(fp)。 /*輸入成功,返回值作為循環(huán)條件*/}void cout(void) /*輸出信息*/{ FILE *fp。 system(cls)。 exit(1)。iI。sta[i].num,amp。sta[i].sex,amp。sta[i].iyear,amp。sta[i].duty,amp。sta[i].phone)。} s=record()。 for (j=0。j++) for(i=0。i++) { if(strcoll(sta[i].name,sta[i+1].name)0) { temp=sta[i]。 sta[i+1]=temp。printf(\n)。is。 fclose(fp)。 /*接收回車*/ printf(\n\n\n\n\n回到主界面請按r 退出系統(tǒng)請按其他鍵\n)。r39。system(cls)。 /*getchar()接收回車*/ default:exit(0)。 getchar()。 printf( 【1】 按工作年月排序 【2】按學(xué)歷排序\n)。 switch (getchar()) { case 39。:iyear(j)。 case 39。:education(j)。 } getchar()。 /*接收回車*/ system(cls)。 printf(請輸入以上數(shù)字,選擇相應(yīng)的功能: )。139。system(cls)。 default:exit(1)。 /*i,k用于循環(huán)體中以及用于結(jié)構(gòu)體下標(biāo)*/ system(cls)。kj1。i=jk1。 sta[i]=sta[i+1]。 } }printf(工號 姓名 性別 出生年月 工作年月 學(xué)歷 職務(wù) 地址 電話\n)。 for(i=0。i++)printf(%5d %10s %4c %4ld %4ld %6s %6s %20s %s\n,sta[i].num,sta[i].name,sta[i].sex,sta[i].byear, sta[i].iyear,sta[i].education,sta[i].duty,sta[i].address,sta[i].phone)。 printf(請輸入以上數(shù)字,選擇相應(yīng)的功能: )。139。break。239。break。 int i。 exit(1)。iI。 fscanf(fp,%d %s %c %ld %ld %s %s %s %s\n,amp。sta[i].name,amp。sta[i].byear, amp。sta[i].education,amp。sta[i].address,amp。 } fclose(fp)。 printf( 【1】學(xué)歷降序排列 【2】學(xué)歷升序排列\(zhòng)n)。 switch(getchar()) { case 39。:descending()。 case 39。:ascending()。 } printf(\n\n按任意鍵返回上一級)。 int num,i,j,k。 scanf(%d,amp。 getchar()。 if((fp=fopen(,r))==NULL) { printf(文件打開錯誤)。 } for(i=0。i++) /*將文件中的信息按行寫入結(jié)構(gòu)體數(shù)組中并輸出 */ { fscanf(fp,%d %s %c %ld %ld %s %s %s %s\n,amp。sta[i].name,amp。sta[i].byear, amp。sta[i].education,amp。sta[i].address,amp。 if(sta[i].num==0) break。 } fclose(fp)。 exit(1)。krecord()。 for(i=0。i++) { sprintf(tempstr,%d,sta[i].num)。 fputs( ,fp)。 fputs( ,fp)。 fputs( ,fp)。 fputs(tempstr,fp)。 sprintf(tempstr,%ld,sta[i].iyear)。 fputs( ,fp)。 fputs( ,fp)。 fputs( ,fp)。 fputs( ,fp)。 fputc(39。,fp)。 }int record(void) /*將文件中的數(shù)據(jù)錄入結(jié)構(gòu)體數(shù)組中*/{ FILE *fp。 /*j用于記錄職工的人數(shù)*/ system(cls)。 exit(1)。iI。sta[i].num,amp。sta[i].sex,amp。sta[i].iyear,amp。sta[i].duty,amp。sta[i].phone)。 } fclose(fp)。}void modify(void) /*修改職工信息*/ { FILE *fp。 /*num是要修改的職工號,j用于計算職工人數(shù)*/ getchar()。 printf(請輸入要修改的職工號碼: )。num)。 if((fp=fopen(,r))==N
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1