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

正文內(nèi)容

學(xué)生和教師信息管理系統(tǒng)c語言課程設(shè)計(jì)-文庫吧在線文庫

2025-06-26 22:10上一頁面

下一頁面
  

【正文】 fun) (int,int), int a[ ], int n ),其中 a[]為成績數(shù)組, n為數(shù)組元素個(gè)數(shù)。 6. 將以上每一步驟的結(jié)果均打印輸出,驗(yàn)證程序是否正確實(shí)現(xiàn)題目要求。 步驟、方法與要求 1. 定義一個(gè)數(shù)組 a[11],用以存放學(xué)生的成績。 d 39。刪除指定學(xué)號(hào)的學(xué)生數(shù)據(jù),對學(xué)生數(shù)據(jù)進(jìn)行排序,分別在鏈表頭部,中間,末尾插入學(xué)生數(shù)據(jù)。并能根據(jù)菜單調(diào)用相應(yīng) 5 的函數(shù)功能。 ? 瀏覽功能:可用 output(struct teacher *L) 函數(shù)來實(shí)現(xiàn)。 ? 保存功能:可用 save(struct teacher *L)函數(shù)來實(shí)現(xiàn)。為退出 \n)。 0 1 2 返回菜單 翻下頁 翻上頁 退出 17 4,查詢函數(shù) scanf(%ld,amp。 printf(請重新輸入該教師的所有信息 :\n)。 密 碼 驗(yàn) 證( LOVECONGCONG) 進(jìn)入主界面 信息錄入 信息刪除 信息瀏覽 信息查詢 信息修改 信息保存 文件加載 退出 21 四.源代碼 第一題 include void main() { float a[11],b,*p。 p=a。 sort(p,10)。 22 scanf(%f,amp。i++) { printf(%f,*p)。i11。in1。} } } void cong(float a[],int n) {int i,j。 for(i=0。x[k]=t。j++) if(x[j]x[k])k=j。a39。x[i]=x[k]。jn1。 for(j=0。 } void pri(int x[],int n) {int i。in。 int*sort2(int x[],int n, char style) 。 printf(請輸入存儲(chǔ)數(shù)據(jù) \n)。 show(amp。 printf(以下為冒泡升序的排序結(jié)果 \n)。 int score2。pnext=qnext。 29 int e,f,g,i。 free(q)。 for(i=0。 for(i=0。 for(i=p。inum=jnum。 } } //============================================================ struct student*inserttop(struct student*p,int i,int j,int k) /*在鏈表頭部插入一個(gè)節(jié)點(diǎn) */ { struct student*a。 pnext=a。 anextnum=c。 int n,i,j=0,a,b,m,A,B,C,E,D,X。 33 void inserttail(struct student*p,int c,int d,int e)。in。pnext=NULL。 printf(以下 為平均分最高的學(xué)生學(xué)號(hào)及其分?jǐn)?shù) \n)。 printf(以下為平均分最低的學(xué)生學(xué)號(hào)及其分?jǐn)?shù) \n)。 scanf(%d,amp。i++) { if(pnextnum==m)h=p。 printf(按平均分的降序排序 \n)。 scanf(%d%d%d,amp。 printf(尾插法:請輸入學(xué)生學(xué)號(hào),成績 1,成績 2\n)。pnext。 for(i=0。 return a。 } //================================================ void save(struct student stu[10]) /*存入文件中并輸出文件內(nèi)容 */ { FILE*fp。 fclose(fp)。i++){ fread(amp。 } printf(以下為降序排列的結(jié)果 \n)。 int i,j,k。 for(j=i+1。 if((fp=fopen(,rb))==NULL) {printf(無法打開此文件 \n)。 printf(%s%5d%5d%5d%5d%5d\n,stu[i].name,stu[i].num,stu[i].score[0],stu[i].score[1],stu[i].score[2],stu[i].aver)。 int high_aver(struct student stu[10])。stu[i].num,amp。i++) high(stu,i)。i++) {if(stu[i].aver==b) printf(%s%5d%5d\n,stu[i].name,stu[i].num,stu[i].aver)。 char education[50]。int n=1,i。 printf(請輸入教師的性別 \n)。peducation)。 scanf(%s,amp。Lnext=p。i++){ printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, tnum,tname,tsex,tage,teducation,tposition,twage,taddr,tphone)。num1)。 printf(刪除成功 \n)。 while(num2!=pnum amp。struct teacher *j。 for(i=Lnext。strcpy(p,iname)。jage=iage。strcpy(jposition,q)。strcpy(iaddr,h)。 printf(請輸入要修改的教師的教師號(hào) :\n)。 pnext==NULL) {printf(沒有此數(shù)據(jù) \n)。psex,amp。 printf(該教師修改后信息 :\n)。p1!=NULL。 struct teacher*p=NULL,*t。 fscanf(fp,%ld %s %s %d %s %s %d %s %ld,amp。paddr,amp。t。p=pnext)n=n+1。amp。 printf(****************************************************************************\n)。k++) p=pnext。k++) p=pnext。 scanf(%d,amp。 } 54 //=============================================================== struct teacher *initial() //初始化文件 {struct teacher*open()。 switch (j) { case 1: if((fp=fopen(,w))==NULL) { printf(不能打開文件 \n)。p1num,amp。p1phone)。p1name,amp。 } p2next=NULL。 } fprintf(fp,0 0 0 0 0 0 0 0 0 )。 struct teacher* Delete(struct teacher *L)。 struct teacher *initial()。 printf( || 請登入 ||\n)。z)。printf(\n)。 printf( \n)。 printf( \n)。} if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,退出 \n)。 scanf(%s,amp。long int x,y。 void save(struct teacher *head)。 case 2:L=open()。 printf( 成功寫入文件 \n)。p1position,amp。 //使指針指向下一節(jié)點(diǎn) p2=p1。p1education,amp。 L=(struct teacher*)malloc(sizeof(teacher))。 printf(確 認(rèn)要初始化文件 ? \ \n)。k++) p=pnext。 system(cls)。 system(cls)。 switch (c) { case 0: system(cls)。 p=pnext。j=a+1。 51 int i,a,j,c,k。t=p。page, amp。 } L=(struct teacher*)malloc(sizeof(teacher))。//a 為追加 fprintf(fp,0 0 0 0 0 0 0 0 0)。 FILE *fp。pwage,amp。 printf(請重新輸入該教師的所有信息 :\n)。amp。 } return L。iwage=z。strcpy(jeducation,w)。 strcpy(o,isex)。j=jnext) 47 if(jnuminum) {a=jnum。 char c[10],o[10]。return NULL。 p=Lnext。amp。 long int num1。t=tnext)n=n+1。pphone)。 printf(請輸入教師的月薪 \n)。 scanf(%d,amp。pnum)。 long int phone。 } 第五題 include include include include struct teacher {long int num。i++) stu[i].aver=avere(stu,i)。 save(stu)。 for(i=0。 void save(struct student stu[10])。i10。stu[i]=stu[k]。i++) stu[i].aver=avere(stu,i)。 fwrite(amp。 } //=============================================== void save2(struct student stu[10]) /*存入文件中并輸出文件內(nèi)容 */ { FILE*fp。 exit(0)。 } 38 for(i=0。i10。i10。 int score[3]。X)。 head=inserttop(p,A,B,C)。pnext。 else Delete(h,head)。 head=Delete2(h,head)。in。in。in。pscore2)。 scanf(%d,amp。 int min(struct student*p,int n)。 b=(struct student*)malloc(LEN)。 int average(struct student*p) 。 pnum=i。jscore1=c。j=jnext) 31 if(iaverjaver) {a=iaver。 p=pnext。 p=pnext。 paver=e。 e=qnum。i=qaver。 struct student*Delete(struct student*p,struct student*head) /*刪除節(jié)點(diǎn) */ { struct student*q。 show(amp。style)。x[i])。 void show(int *(*fun)(int*,int),int *x,int n)。 int n,i。 printf(\n)。i++) if(x[i]x[i+1]) {t=x[i]。x[i]=x[i+1]。) sort1(x,n)。 for(j=
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1