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

正文內(nèi)容

《c語(yǔ)言程序設(shè)計(jì)》課程設(shè)計(jì)報(bào)告_職工信息管理系統(tǒng)-文庫(kù)吧

2025-04-24 00:38 本頁(yè)面


【正文】 printf(%\t,stud[i1]. wage)。 printf(%s\t,stud[i1]. place)。 printf(%,stud[i1]. tel)。 printf(\n)。 } printf(\t\t\t\n)。 } 10 } void Search(Student stud[],int n) /*查找并顯示一個(gè)記錄 */ { int s=0。 int i=0。 int t=0。 printf(按職工號(hào)查找請(qǐng)輸入 1, 按工資查找請(qǐng)輸入 2\n)。 scanf(%d,amp。t)。 switch(t)/*選擇判斷 */ { case 1:/*按職工號(hào)查找 */ printf(輸入需要查找職工的職工號(hào) :\n)。 scanf(%d,amp。s)。 while((stud[i].numbers)!=0amp。amp。in) i++。 /*查找判斷 */ if(i==n) { printf(=====提示 : 對(duì)不起 , 無(wú)法找到該職工的信息 ! \n)。 /*輸入失敗信息 */ return。 } printf(\n)。 /*輸出該職工信息 */ printf( 職工號(hào) :%d\n,stud[n1]. number)。 printf( 姓名 :%s\n,stud[n1]. name)。 printf( 性別 :%s\n,stud[n1]. sex)。 printf( 出生年月日 :%\n,stud[n1]. year)。 printf( 學(xué)歷 :%s\n,stud[n1]. educat)。 printf( 職務(wù) :%s\n,stud[n1]. duty)。 11 printf( 工資 :%f\n,stud[n1].wage)。 printf( 住址 :%s\n,stud[n1]. place)。 printf( 電話 :%\n,stud[n1]. tel)。 printf(\n)。 break。 case 2:/*按姓名查找 */ printf(輸入需要查找職工的工資 :\n)。 scanf(%d,amp。s)。 while((stud[i].wages)!=0amp。amp。in) i++。 /*查找判斷 */ if(i==n) { printf(=====提示 : 對(duì)不起 , 無(wú)法找到該職工的信息 ! \n)。 /*輸入失敗信息 */ return。 } printf(\n)。 /*輸出該職工信息 */ printf( 職工號(hào) :%d\n,stud[n1]. number)。 printf( 姓名 :%s\n,stud[n1]. name)。 printf( 性別 :%s\n,stud[n1]. sex)。 printf( 出生年月日 :%\n,stud[n1]. year)。 printf( 學(xué)歷 :%s\n,stud[n1]. educat)。 printf( 職務(wù) :%s\n,stud[n1]. duty)。 printf( 工資 :%f\n,stud[n1].wage)。 printf( 住址 :%s\n,stud[n1]. place)。 printf( 電話 :%\n,stud[n1]. tel)。 printf(\n)。 break。 } 12 } void Modify(Student stud[],int n) /*修改職工信息 */ { int s=0。 int i=0。 printf(輸入需要修改職工信息的職工號(hào) :\n)。 scanf(%d,amp。s)。 while((stud[i].numbers)!=0amp。amp。in) i++。 /*查找判斷 */ if(i==n) { printf(=====提示 : 對(duì)不起 , 無(wú)該職工的信息 ?? \n)。 /*輸入失敗信息 */ return。 } printf( 該職工的信息\n)。 /*格式頭 */ printf( ┏┓ \n)。 /*格式頭 */ printf( 職工號(hào) \t 姓名 \t 性別 \t 生日 \t 學(xué)歷 \t 職務(wù) \t 工資 \t住址 \t 電話 \n)。 printf( ┗┛ \n)。 printf(\n)。 printf( %d\t,stud[i1]. number)。 13 printf(%s\t,stud[i1]. name)。 printf(%s\t,stud[i1]. sex)。 printf(%,stud[i1]. year)。 printf(%s\t,stud[i1]. educat)。 printf(%s,stud[i1]. duty)。 printf(%\t,stud[i1]. wage)。 printf(%s\t,stud[i1]. place)。 printf(%,stud[i1]. tel)。 printf(\n)。 printf(請(qǐng)輸入職工號(hào) :)。 /*交互輸入 */ scanf(%d,amp。stud[n+i].number)。 printf(請(qǐng)輸入職工的姓名 :)。 scanf(%s,amp。stud[n+i].name)。 printf(請(qǐng)輸入職工的性別 :)。 scanf(%s,amp。stud[n+i].sex)。 printf(請(qǐng)輸入職工的出生年月日 :)。 scanf(%f,amp。stud[n+i].year)。 printf(請(qǐng)輸入職工的學(xué)歷 :)。 scanf(%s,amp。stud[n+i].educat)。 printf(請(qǐng)輸入職工的職務(wù) :)。 scanf(%s,amp。stud[n+i].duty)。 printf(請(qǐng)輸入職工的工資 :)。 scanf(%f,amp。stud[n+i].wage)。 printf(請(qǐng)輸入 職工的住址 :)。 scanf(%s,amp。stud[n+i].place)。 printf(請(qǐng)輸入職工的電話 :)。 scanf(%lf,amp。stud[n+i].tel)。 printf(%s\n,stud[n+i].name)。 14 } int Delete(Student stud[],int n) /*按職工號(hào)查找 , 刪除一條記錄 */ { int s=0。 int i=0,j。 printf(輸入需要?jiǎng)h除職工的職工號(hào) :\n)。 /*交互式問(wèn)尋 */ scanf(%d,amp。s)。 while((stud[i].numbers)!=0amp。amp。in) i++。 /*查找判斷 */ if(i==n) { printf(=====提示:對(duì)不起,無(wú)法找到該職工號(hào)?? \n)。 /*返回失敗信息 */ return(n)。 } for(j=i。jn1。j++) /*刪除操作 */ { strcpy(stud[j]. name,stud[j+1]. name)。 stud[j].number=stud[j+1].number。 strcpy(stud[j]. sex,stud[j+1]. sex)。 stud[j].year=stud[j+1].year。 strcpy(stud[j]. educat,stud[j+1]. educat)。 strcpy(stud[j]. duty,stud[j+1]. duty)。 stud[j].wage=stud[j+1].wage。 strcpy(stud[j]. place,stud[j+1]. place)。 stud[j].tel=stud[j+1].tel。 } printf(=====提示 : 已成功刪除 ! \n)。 /*返回成功信息 */ return(n1)。 15 } void Sort(Student stud[],int n) /*按職工號(hào)排序 */ { int i,j,k。 float s。 char t[20]。 for(i=0。in1。i++) /*冒泡法排序 */ for(j=0。jn1i。j++) if(stud[j].numberstud[j+1].number) { k=stud[j+1].number。 stud[j+1].number=stud[j].number。 stud[j].number=k。 strcpy(t,stud[j+1].name)。 strcpy(stud[j+1].name,stud[j].name)。 strcpy(stud[j].name,t)。 strcpy(t,stud[j+1].sex)。 strcpy(stud[j+1].sex,stud[j].sex)。 strcpy(stud[j].sex,t)。 s=stud[j+1].year。 stud[j+1].year=stud[j].year。 stud[j]. year =s。 strcpy(t,stud[j+1].educat)。 strcpy(stud[j+1].educat,stud[j].educat)。 strcpy(stud[j].educat,t)。 strcpy(t,stud[j+1].duty)。 strcpy(stud[j+1].duty,stud[j].duty)。 strcpy(stud[j].duty,t)。 16 s=stud[j+1].wage。 stud[j+1].wage=stud[j].wage。 stud[j].wage=s。 strcpy(t,stud[j+1].place)。 strcpy(stud[j+1].place,stud[j].place)。 strcpy(stud[j].place,t)。 s=stud[j+1].tel。 stud[j+1].tel =stud[j].tel。 stud[j]. tel=s。 } printf( ┏┓ \n)。 /*格式頭 */ printf( 職工號(hào) \t 姓名 \t 性別 \t 生日 \t 學(xué)歷 \t 職務(wù) \t 工資 \t住址 \t 電話 \n)。 printf( ┗┛ \n)。 for(i=1。in+1。i++) /*循環(huán)輸入 */ { printf( %d\t,stud[i1]. number)。 printf(%s\t,stud[i1]. name)。 printf(%s\t,stud[i1]. sex)。 printf(%,stud[i1]. year)。 printf(%s\t
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1