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

正文內(nèi)容

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

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

下一頁面
  

【正文】 p=head。} printf(請(qǐng)輸入要?jiǎng)h除數(shù)據(jù)的學(xué)生學(xué)號(hào) \n)。in1。p=pnext) printf(%d,%d,%d\n,pnum,pscore1,pscore2)。 printf(頭插入法 :請(qǐng)輸入學(xué)生學(xué)號(hào),成績(jī) 1,成績(jī) 2\n)。 p=head。 for(p=head。 void high(struct student stu[10],int n) /*單科最高分 */ {int i,m=0。 a=(stu[i].score[0]+stu[i].score[1]+stu[i].score[2])/3。 } return a。stu[i],sizeof(struct student),1,fp)。i10。 exit(0)。 } void px(struct student stu[10]) /*降序排序 */ {int avere(struct student stu[10],int i)。i++) { k=i。 FILE*fp。stu[i],sizeof(struct student),1,fp)。 int avere(struct student stu[10],int i)。stu[i].name,amp。i3。i10。 int age。 //======================================================== struct teacher* insert(struct teacher *L) /*頭插法插入*/ 43 {struct teacher *p,*t。pname)。 scanf(%s,amp。 printf(請(qǐng)輸入教師的地址 \n)。} else{ pnext=Lnext。in。 45 scanf(%ld,amp。} if(num1==pnum) {qnext=pnext。num2)。 } //================================================ struct teacher* sort(struct teacher *L) /*排序 */ {struct teacher *i。 char h[50],s[50]。 strcpy(b,jname)。 x=jage。strcpy(q,iposition)。strcpy(jaddr,s)。 p=Lnext。amp。pname,amp。 printf(修改成功 \n)。 } for(p1=head。 } //=========================================================================== struct teacher* open() //打開文件 {FILE*fp。 while(!feof(fp)) {p=(struct teacher*)malloc(sizeof(teacher))。pwage,amp。 for(t=L。pnext!=NULL。i6amp。 printf(【 】【 ↑】【 ↓】【 52 →】【當(dāng)前頁 :%d/%d】 \n,j,a+1)。k((j2)*6)+1。k(j*6)。 printf(請(qǐng)輸入要跳轉(zhuǎn)至第幾頁 :)。 } } } else printf(沒記錄 \n)。j)。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。p1addr,amp。p1num,amp。p1phone)。 break。 } } //============================================================== void main() { struct teacher* insert(struct teacher *L)。 int control。 printf( || ||\n)。 scanf(%s,amp。printf(\n)。 printf( *聰慧制作 * \n)。 printf( $ \n)。return。z)。 printf(\n\n ____________________\n)。 57 void output(struct teacher *L)。break。 56 fclose(fp)。p1wage,amp。 p1=(struct teacher*)malloc(sizeof(teacher))。p1position,amp。Lnext=NULL。 printf(請(qǐng)輸入 :\n)。 system(cls)。 break。 break。break。 } printf(\n)。j++) { printf(\n\n)。int n=1。} if(Lnext==NULL)printf(文件為空 \n)。peducation,amp。Lnext=NULL。 fclose(fp)。 if((fp=fopen(,w))==NULL) { printf(文件不存在 \n)。paddr,amp。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。 pnext!=NULL) p=pnext。 } //======================================================== struct teacher* fix(struct teacher *L) //修改教師信息 { long int teach_num。 strcpy(h,jaddr)。strcpy(ieducation,e)。 strcpy(jsex,o)。jnum=inum。 char e[50],w[50]。} printf(姓名 %s\n 性別 %s\n 年齡 %d\n 學(xué)歷 %s\n 職稱 %s\n 工資 %d\n 住址 %s\n 電話 %d\n, pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 printf(請(qǐng)輸 入教師號(hào) \n)。 pnext!=NULL) {q=p。 if(Lnext==NULL) { printf(數(shù)據(jù)為空 ,不能進(jìn)行刪除操作 \n)。 t=Lnext。 if(Lnext==NULL) {pnext=NULL。 scanf(%d,amp。page)。 printf(請(qǐng)輸入教師的姓名 \n)。 struct teacher *next。 char name[20]。 b=high_aver(stu)。 save1(stu)。i10。 void reading(struct student stu[10])。i+=2) {fseek(fp,i*sizeof(struct student),0)。stu[k]=t。 for(i=0。stu[i],sizeof(struct student),1,fp)。int i。} printf(以下為 中讀出的數(shù)據(jù) \n)。i10。i++) {b=avere(stu,i)。i++) {if(stu[i].score[n]==m) printf(score%d 最高分的學(xué)生名字學(xué)號(hào)成績(jī)分別為: %s%5d%5d\n,n,stu[i].name,stu[i].num,stu[i].score[n])。 int aver。 inserttail(p,E,D,X)。 printf(輸出節(jié)點(diǎn)的第一個(gè)數(shù)據(jù) \n)。p=pnext) { printf(%d,%d,%d,%d\n,pnum,pscore1,pscore2,paver)。} for( p=head。} else{ if(headnum==m)h=head。i++) {if(b==average(p))printf(%d,%d,%d,%d\n,pnum,pscore1,pscore2,b)。i++) {if(a==average(p))printf(%d,%d,%d,%d\n,pnum,pscore1,pscore2,a)。i++) { printf(%d,%d\n,pnum,average(p))。 g=p。n)。 struct student*Delete(struct student*p,struct student*head)。 bnext=NULL。 for(i=p。 pscore1=j。 d=iscore2。iaver=javer。 } return a。 } return a。 return e。f=qscore1。 free(q)。 int e,f,g,i。paodown,x,n)。 sort2(x,n,style) 。 if(n==10) printf(以下為調(diào)用原始函數(shù)后的排序結(jié)果 \n)。 printf(請(qǐng)輸入將要輸入數(shù)據(jù)的個(gè)數(shù) \n)。char style。 } void show(int*(*fun)(int*,int),int* x,int n) { int i。x[i]=x[i+1]。x[i+1]=t。 return x。j10。 } int*sort2(int x[],int n, char style) /*改進(jìn)程序二 */ { int i,j,k,t。i++) {k=i。j++) if(x[j]x[k])k=j。a[i]=a[j]。 if(k!=i) {t=a[i]。 } void sort(float a[],int n) {int i,j,k。 cong(p,11)。 p=a。p++。 printf(\n)。 for(i=0。通過 fp=fopen(,a)。l); 選擇修改函數(shù) printf(請(qǐng)輸入要修改的教師號(hào) :\n)。退出 繼續(xù)輸入 3,瀏覽函數(shù) 通過直接調(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è)為一頁輸出數(shù)據(jù) printf(沒記錄 \n)。輸入選擇所需的項(xiàng),進(jìn)入相應(yīng)的菜單 選項(xiàng) 1 2 2 初始化信息 退出 2,錄入函數(shù) scanf(%d,amp。其中通過教師號(hào)查詢刪除所選擇的信息。 二: 總體設(shè)計(jì) (一)、仔細(xì)閱讀系統(tǒng)要求,首先將此系統(tǒng)化分為如下模塊 /功能(即如下函數(shù)) ? 錄入功能:可用函數(shù) teacher *insert(struct teacher *head,struct teacher *teach) 。 (五)教師信息管理系統(tǒng)設(shè)計(jì) 教師信息包括教師號(hào)、姓名、性別、年齡、學(xué)歷、職稱、工資、住址、電話等(教師號(hào)不重復(fù))。 5. 編寫通用輸出函數(shù) show( int( *
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1