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

正文內(nèi)容

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

  

【正文】 23 if(a[j]a[k])k=j。j10。} } return x。) sort1(x,n)。i++) if(x[i]x[i+1]) {t=x[i]。 int n,i。x[i])。 show(amp。i=qaver。 paver=e。 p=pnext。jscore1=c。 int average(struct student*p) 。 int min(struct student*p,int n)。pscore2)。in。 head=Delete2(h,head)。pnext。X)。i10。 } 38 for(i=0。 } //=============================================== void save2(struct student stu[10]) /*存入文件中并輸出文件內(nèi)容 */ { FILE*fp。i++) stu[i].aver=avere(stu,i)。i10。 for(i=0。i++) stu[i].aver=avere(stu,i)。 long int phone。 scanf(%d,amp。pphone)。 long int num1。 p=Lnext。 char c[10],o[10]。 strcpy(o,isex)。iwage=z。amp。pwage,amp。//a 為追加 fprintf(fp,0 0 0 0 0 0 0 0 0)。page, amp。 51 int i,a,j,c,k。 p=pnext。 system(cls)。k++) p=pnext。 L=(struct teacher*)malloc(sizeof(teacher))。 //使指針指向下一節(jié)點(diǎn) p2=p1。 printf( 成功寫(xiě)入文件 \n)。 void save(struct teacher *head)。 scanf(%s,amp。 printf( \n)。printf(\n)。 printf( || 請(qǐng)登入 ||\n)。 struct teacher* Delete(struct teacher *L)。 } p2next=NULL。p1phone)。 switch (j) { case 1: if((fp=fopen(,w))==NULL) { printf(不能打開(kāi)文件 \n)。 scanf(%d,amp。k++) p=pnext。amp。t。 fscanf(fp,%ld %s %s %d %s %s %d %s %ld,amp。p1!=NULL。psex,amp。 printf(請(qǐng)輸入要修改的教師的教師號(hào) :\n)。strcpy(jposition,q)。strcpy(p,iname)。struct teacher *j。 printf(刪除成功 \n)。i++){ printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s 職位 :%s 薪水 :%d 地址 :%s 電話(huà) :%ld\n, tnum,tname,tsex,tage,teducation,tposition,twage,taddr,tphone)。 scanf(%s,amp。 printf(請(qǐng)輸入教師的性別 \n)。 char education[50]。i++) high(stu,i)。 int high_aver(struct student stu[10])。 if((fp=fopen(,rb))==NULL) {printf(無(wú)法打開(kāi)此文件 \n)。 int i,j,k。i++){ fread(amp。 } //================================================ void save(struct student stu[10]) /*存入文件中并輸出文件內(nèi)容 */ { FILE*fp。 for(i=0。 printf(尾插法:請(qǐng)輸入學(xué)生學(xué)號(hào),成績(jī) 1,成績(jī) 2\n)。 printf(按平均分的降序排序 \n)。 scanf(%d,amp。 printf(以下 為平均分最高的學(xué)生學(xué)號(hào)及其分?jǐn)?shù) \n)。in。 int n,i,j=0,a,b,m,A,B,C,E,D,X。 pnext=a。inum=jnum。 for(i=0。 free(q)。pnext=qnext。 printf(以下為冒泡升序的排序結(jié)果 \n)。 printf(請(qǐng)輸入存儲(chǔ)數(shù)據(jù) \n)。in。 for(j=0。x[i]=x[k]。j++) if(x[j]x[k])k=j。 for(i=0。in1。i++) { printf(%f,*p)。 sort(p,10)。 密 碼 驗(yàn) 證( LOVECONGCONG) 進(jìn)入主界面 信息錄入 信息刪除 信息瀏覽 信息查詢(xún) 信息修改 信息保存 文件加載 退出 21 四.源代碼 第一題 include void main() { float a[11],b,*p。 0 1 2 返回菜單 翻下頁(yè) 翻上頁(yè) 退出 17 4,查詢(xún)函數(shù) scanf(%ld,amp。 ? 保存功能:可用 save(struct teacher *L)函數(shù)來(lái)實(shí)現(xiàn)。并能根據(jù)菜單調(diào)用相應(yīng) 5 的函數(shù)功能。 d 39。 6. 將以上每一步驟的結(jié)果均打印輸出,驗(yàn)證程序是否正確實(shí)現(xiàn)題目要求。 (五)教師信息管理系統(tǒng)設(shè)計(jì) 教師信息包括教師號(hào)、姓名、性別、年齡、學(xué)歷、職稱(chēng)、工資、住址、電話(huà)等(教師號(hào)不重復(fù))。其中通過(guò)教師號(hào)查詢(xún)刪除所選擇的信息。退出 繼續(xù)輸入 3,瀏覽函數(shù) 通過(guò)直接調(diào)用通用輸出函數(shù) void output(struct teacher *head)瀏覽一輸入存儲(chǔ)的數(shù)據(jù) if((Lnext)!=NULL) if((Lnext)!=NULL) if((Lnext)!=NULL) if((Lnext)!=NULL) if((Lnext)!=NULL) yes no 分 6 個(gè)為一頁(yè)輸出數(shù)據(jù) printf(沒(méi)記錄 \n)。通過(guò) fp=fopen(,a)。 printf(\n)。 p=a。 } void sort(float a[],int n) {int i,j,k。a[i]=a[j]。i++) {k=i。j10。x[i+1]=t。 } void show(int*(*fun)(int*,int),int* x,int n) { int i。 printf(請(qǐng)輸入將要輸入數(shù)據(jù)的個(gè)數(shù) \n)。 sort2(x,n,style) 。 int e,f,g,i。f=qscore1。 } return a。iaver=javer。 pscore1=j。 bnext=NULL。n)。i++) { printf(%d,%d\n,pnum,average(p))。i++) {if(b==average(p))printf(%d,%d,%d,%d\n,pnum,pscore1,pscore2,b)。} for( p=head。 printf(輸出節(jié)點(diǎn)的第一個(gè)數(shù)據(jù) \n)。 int aver。i++) {b=avere(stu,i)。} printf(以下為 中讀出的數(shù)據(jù) \n)。stu[i],sizeof(struct student),1,fp)。stu[k]=t。 void reading(struct student stu[10])。 save1(stu)。 char name[20]。 printf(請(qǐng)輸入教師的姓名 \n)。 scanf(%d,amp。 t=Lnext。 pnext!=NULL) {q=p。} printf(姓名 %s\n 性別 %s\n 年齡 %d\n 學(xué)歷 %s\n 職稱(chēng) %s\n 工資 %d\n 住址 %s\n 電話(huà) %d\n, pname,psex,page,peducation,pposition,pwage,paddr,pphone)。jnum=inum。strcpy(ieducation,e)。 } //======================================================== struct teacher* fix(struct teacher *L) //修改教師信息 { long int teach_num。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。 if((fp=fopen(,w))==NULL) { printf(文件不存在 \n)。Lnext=NULL。} if(Lnext==NULL)printf(文件為空 \n)。j++) { printf(\n\n)。break。 break。 printf(請(qǐng)輸入 :\n)。p1position,amp。p1wage,amp。break。 printf(\n\n ____________________\n)。return。 printf( *聰慧制作 * \n)。 scanf(%s,amp。 int control。 break。p1num,amp。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。 } } } else printf(沒(méi)記錄 \n)。k(j*6)。 printf(【 】【 ↑】【 ↓】【 52 →】【當(dāng)前頁(yè) :%d/%d】 \n,j,a+1)。pnext!=NULL。pwage,amp。 } //=========================================================================== struct teacher* open() //打開(kāi)文件 {FILE*fp。 printf(修改成功 \n)。amp。strcpy(jaddr,s)。 x=jage。 char h[50],s[50]。num2)。 45 scanf(%ld,amp。} else{ pnext=Lnext。 scanf(%s,amp。 //======================================================== struct teacher* insert(struct teacher *L) /*頭插法插入*/ 43 {struct teacher *p,*t。i10。stu[i].name,amp。stu[i],sizeof(struct student),1,fp)。i++) { k=i。 exit(0)。stu[i],sizeof(struct student),1,fp)。 a=(stu[i].score[0]+stu[i].score[1]+stu[i].score[2])/3。 fo
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1