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

正文內(nèi)容

學(xué)生和教師信息管理系統(tǒng)c語言課程設(shè)計(jì)(專業(yè)版)

2025-07-08 22:10上一頁面

下一頁面
  

【正文】 58 printf( \n)。 printf( ||____________________||\n)。 struct teacher* sort(struct teacher *L)。p1!=NULL。 if(n==1) Lnext=p1。 } printf(最后將信息全輸 0 表示輸入結(jié)束 \n)。 for(p=Lnext,k=0。 j=j1。i++) { printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 return L。pname,amp。 fclose(fp)。peducation,amp。teach_num)。 z=jwage。 strcpy(iname,b)。int z,x。 } //======================================================== struct teacher* inquiry(struct teacher *L) /*查詢 */ { struct teacher *p。} return L。 printf(請(qǐng)輸入教師的電話 \n)。psex)。 int wage。 for(i=0。 int i,b。 } printf(以下為第 1, 3, 5, 7, 9 的數(shù)據(jù) \n)。 for(i=0。 printf(%s%5d%5d%5d%5d\n,stu[i].name,stu[i].num,stu[i].score[0],stu[i].score[1],stu[i].score[2])。 if((fp=fopen(,wb))==NULL) {printf(無法打開 此文件 \n)。i++) {if(stu[i].score[n]m)m=stu[i].score[n]。E,amp。 px(p)。 p=head。 p=head。pnum,amp。 int average(struct student*p) 。 } 32 //======================================================== void inserttail(struct student*p,int c,int d,int e) /*尾部插入 */ { struct student*a,*b。 c=iscore1。i++) { average(p)。 } //============================================ int average(struct student*p) /*求平均分 */ {int e。f=qscore1。paoup,x,n)。in。 printf(\n)。j++) for(i=0。} } } if(style==39。x[i]=x[k]。i++) {k=i。 for(j=i+1。 } printf(\n)。 for(i=0。 void sort(float a[],int n)。 退出 exit 5,刪除函數(shù) scanf(%d,amp。 ? 退出系統(tǒng):首先將信息保存到文件中,釋放動(dòng)態(tài)創(chuàng)建的內(nèi)存空間,再 直接 退出此程序。 《 2》用戶輸入口令后,若口令對(duì),則提示用戶通過,可執(zhí)行后續(xù)程序;否則不通過。 ( a: ascending 升, d:descending 降) 編 寫多個(gè)不同函數(shù),使之能實(shí)現(xiàn)不同的排序算法( 3種以上),再編寫一個(gè)通用輸出函數(shù),(要求用函數(shù)指針做參數(shù))能分別打印不同排序算法的結(jié)果。 4. 再輸入一個(gè)學(xué)生的成績(jī),將此成績(jī)按照排序規(guī)律插入原學(xué)生成績(jī)數(shù)組。 7. 打開文件 文件,讀出數(shù)據(jù),將 10 個(gè)學(xué)生按照平均分?jǐn)?shù)從高到低進(jìn)行排序, 分別將結(jié)果輸出到屏幕上和另一文件 。通過教師號(hào)和職稱來查詢教師的全部信息。載入文件 是否輸入為“ 0” YES NO fprintf(fp,0 0 0 0 0 0 0 0 0)。 printf(該教師修改后信息 :\n)。i10。 p=a。} printf(\n)。in/2+1。 for(i=0。i++) {k=i。i++) if(x[i]x[i+1]) {t=x[i]。i++) printf(%d,x[i])。 27 void pri(int x[],int n)。 scanf(%f,amp。 }。pnext=qnext。 30 if(aaverage(p)||a==average(p))a=average(p)。jnext。 p=(struct student*)malloc(LEN)。 anextaver=average(anext)。 printf(請(qǐng)輸入將要儲(chǔ)存學(xué)生數(shù)據(jù)的個(gè)數(shù) \n)。 for(i=0。 for(i=0。 35 if(h==head)head=Delete(h,head)。C)。 int num。 for(i=0。 if((fp=fopen(,rb))==NULL) {printf(無法打開此文件 \n)。i++) {printf(%s%5d%5d%5d%5d\n,stu[i].name,stu[i].num,stu[i].score[0],stu[i].score[1],stu[i].score[2])。 if(k!=i){t=stu[i]。 41 void save1(struct student stu[10])。stu[i].score[2])。 reading(stu)。 scanf(%ld,amp。pposition)。tnext。 } else while(pnum!=num1 amp。 if(pnum!=num2) {printf(查詢失敗 \n)。j。strcpy(w,ieducation)。 iphone=k。 printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 } 49 //=============================================================== void save(struct teacher *head) //文件保存 { struct teacher *p1。 return NULL。 tnext=p。 if((Lnext)!=NULL) { for(j=1。c)。k++) p=pnext。 int j,n=0。p1 55 age, amp。p1education,amp。 break。 int j。z)。 printf( Wele! \。} if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,請(qǐng)重新輸入 \n)。 char z[30]。 fclose(fp)。p1sex,amp。p1name,amp。 FILE *fp。 } else for(p=Lnext,k=0。 printf(請(qǐng)輸入要進(jìn)行的操作 :\n)。 a=n/6。pphone)。struct teacher*L。 printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。return NULL。 k=jphone。 iage=x。inext。amp。 p=L。} 44 printf(輸出新增后的結(jié)果 \n)。 printf(請(qǐng)輸入教師的職位 \n)。 p=(struct teacher*)malloc(sizeof(teacher))。} 42 px(stu)。stu[i].score[0],amp。 } fclose(fp)。j10。 for(i=0。} //======================================= void save1(struct student stu[10]) //讀取文件信息 { FILE*fp。 } //===================================================== int high_aver(struct student stu[10]) /*求最高平均分 */ {int avere(struct student stu[10],int i)。p=pnext) 36 printf(%d,%d,%d,%d\n,pnum,pscore1,pscore2,paver)。A,amp。 p=pnext。 b=min(p,n)。 } p=head。 struct student*Delete2(struct student*p,struct student*head)。 anextscore1=d。 int average(struct student*p) 。inextnext。in。 x=head。 int aver。sort1,x,n)。 int*paoup(int x[],int n)。 for(i=0。j++) for(i=0。) { for(i=0。} } return x。 float t。i++) {printf(%f,*p)。a[10])。 i=0。 scanfdata(p1)。 scanfdata(p1)。找到就輸出此教師全部信息包括教師號(hào)、姓名、性別、年齡、學(xué)歷、職稱、工資、住址、電話等信息。 (四) 學(xué)生成績(jī)文件管理 定義一個(gè)結(jié)構(gòu)體數(shù)組,存放 10 個(gè)學(xué)生的學(xué)號(hào),姓名,三門課的成績(jī),輸出單門課成績(jī)最高的學(xué)生的學(xué)號(hào)、姓名、以及該門課程的成績(jī),輸出三門課程的平均分?jǐn)?shù)最高的學(xué)生的學(xué)號(hào)、姓名及其平均分,將 10 個(gè)學(xué)生的相關(guān)數(shù)據(jù),存入文件中,再?gòu)奈募凶x出,按照平均分?jǐn)?shù)從高到低進(jìn)行排序,分別將結(jié)果輸出到屏幕上和另 一文件中,再?gòu)奈募凶x取第 1 , 3 , 5 , 7, 9個(gè)學(xué)生的數(shù)據(jù)。 2. 從鍵盤輸入 10個(gè)學(xué)生成績(jī)。 ( a: ascending 升, d:descending 降) 4. 編寫 4個(gè)排序函數(shù),實(shí)現(xiàn) 4種不同的排序算法(用冒泡法進(jìn)行升序排序,用冒泡法進(jìn)行降序排序,選擇法進(jìn)行升序排序,選擇法進(jìn)行降序排序等),函數(shù)返回指向排好序的數(shù)組的指針。 ( 3)顯示數(shù)據(jù)時(shí),一頁顯示不下,可分頁顯示 。l)。輸入要?jiǎng)h除的教師號(hào) 該教師號(hào)是否存在 是 否 輸出刪除后,文件的所有數(shù)據(jù) 提示該教師號(hào)不存在,重新輸入 退出 exit 18 6,修改函數(shù) scanf(%d,amp。 p=a。i++) { printf(%f,*p)。 p=a。j++)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1