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

正文內(nèi)容

學(xué)生和教師信息管理系統(tǒng)c語言課程設(shè)計(jì)-閱讀頁

2025-06-02 22:10本頁面
  

【正文】 uct student stu[10]) {int i。 if((fp=fopen(,rb))==NULL) {printf(無法打開此文件 \n)。 } printf(以下為第 1, 3, 5, 7, 9 的數(shù)據(jù) \n)。i10。 fread(amp。 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)。 } //======================================================== void main(){ //主函數(shù) void save2(struct student stu[10])。 void save(struct student stu[10])。 void high(struct student stu[10],int n)。 int high_aver(struct student stu[10])。 int i,b。 for(i=0。i++) scanf(%s %d %d %d %d\n,amp。stu[i].num,amp。stu[i].score[1],amp。 save(stu)。 for(i=0。i++) high(stu,i)。 for(i=0。i++) stu[i].aver=avere(stu,i)。 for(i=0。i++) {if(stu[i].aver==b) printf(%s%5d%5d\n,stu[i].name,stu[i].num,stu[i].aver)。 save2(stu)。 } 第五題 include include include include struct teacher {long int num。 char sex[10]。 char education[50]。 int wage。 long int phone。 }。int n=1,i。 printf(請輸入教師的教師號 \n)。pnum)。 scanf(%s,amp。 printf(請輸入教師的性別 \n)。psex)。 scanf(%d,amp。 printf(請輸入教師的學(xué)歷 \n)。peducation)。 scanf(%s,amp。 printf(請輸入教師的月薪 \n)。pwage)。 scanf(%s,amp。 printf(請輸入教師的電話 \n)。pphone)。Lnext=p。Lnext=p。 for(t=Lnext。t=tnext)n=n+1。 for(i=0。i++){ printf(教師號 :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, tnum,tname,tsex,tage,teducation,tposition,twage,taddr,tphone)。} return L。 long int num1。 } printf(請輸入要進(jìn)行刪除的教師號 \n)。num1)。 if(num1==pnum) { L=pnext。amp。 p=pnext。 printf(刪除成功 \n)。 } //======================================================== struct teacher* inquiry(struct teacher *L) /*查詢 */ { struct teacher *p。 p=Lnext。 scanf(%d,amp。 while(num2!=pnum amp。 pnext!=NULL) 46 p=pnext。return NULL。 return L。struct teacher *j。int z,x。 char c[10],o[10]。 char f[30],q[30]。 for(i=Lnext。i=inext) for(j=inext。j=jnext) 47 if(jnuminum) {a=jnum。inum=a。strcpy(p,iname)。 strcpy(iname,b)。 strcpy(o,isex)。 strcpy(isex,c)。jage=iage。 strcpy(e,jeducation)。strcpy(jeducation,w)。 strcpy(f,jposition)。strcpy(jposition,q)。 z=jwage。iwage=z。strcpy(s,iaddr)。strcpy(iaddr,h)。 jphone=iphone。 } return L。 struct teacher *p。 printf(請輸入要修改的教師的教師號 :\n)。teach_num)。amp。 if(pnum!=teach_num amp。 pnext==NULL) {printf(沒有此數(shù)據(jù) \n)。} printf(該教師原信息 :\n)。 printf(請重新輸入該教師的所有信息 :\n)。pnum,amp。psex,amp。peducation,amp。pwage,amp。pphone)。 printf(該教師修改后信息 :\n)。 return L。 FILE *fp。 return。p1!=NULL。 fclose(fp)。//a 為追加 fprintf(fp,0 0 0 0 0 0 0 0 0)。 printf(文件保存成功 \n)。 struct teacher*p=NULL,*t。 50 if((fp=fopen(,r))==NULL) { printf(文件不存在 \n)。 } L=(struct teacher*)malloc(sizeof(teacher))。 t=L。 fscanf(fp,%ld %s %s %d %s %s %d %s %ld,amp。pname,amp。page, amp。pposition,amp。paddr,amp。 pnext=NULL。t=p。 fclose(fp)。t。 return L。 51 int i,a,j,c,k。 for(p=Lnext。p=pnext)n=n+1。 p=Lnext。j=a+1。 for(i=0。amp。i++) { printf(教師號 :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 p=pnext。 printf(****************************************************************************\n)。 printf(****************************************************************************\n)。 scanf(%d,amp。 switch (c) { case 0: system(cls)。 case 1: if(j!=1) { for(p=L,k=0。k++) p=pnext。 j=j1。 system(cls)。 53 case 2: if(j!=a+1) { for(p=Lnext,k=0。k++) p=pnext。knn%6。 system(cls)。 case 3: printf(【 當(dāng)前共有 %d 頁 】 \n,a+1)。 scanf(%d,amp。 for(p=Lnext,k=0。k++) p=pnext。 break。 } 54 //=============================================================== struct teacher *initial() //初始化文件 {struct teacher*open()。 struct teacher *p1,*p2,*L。 printf(確 認(rèn)要初始化文件 ? \ \n)。 scanf(%d,amp。 switch (j) { case 1: if((fp=fopen(,w))==NULL) { printf(不能打開文件 \n)。 } printf(最后將信息全輸 0 表示輸入結(jié)束 \n)。 L=(struct teacher*)malloc(sizeof(teacher))。 p1=p2=(struct teacher*)malloc(sizeof(teacher))。p1num,amp。p1sex,amp。p1education,amp。p1wage,amp。p1phone)。 if(n==1) Lnext=p1。 //使指針指向下一節(jié)點(diǎn) p2=p1。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。p1name,amp。p1age, amp。p1position,amp。p1addr,amp。 } p2next=NULL。p1!=NULL。 printf( 成功寫入文件 \n)。 if((fp=fopen(,a))==NULL) { printf(不能打開文件 \n)。 } fprintf(fp,0 0 0 0 0 0 0 0 0 )。return L。 case 2:L=open()。 return L。 struct teacher* Delete(struct teacher *L)。 struct teacher* sort(struct teacher *L)。 void save(struct teacher *head)。 struct teacher*open()。 struct teacher *initial()。 struct teacher *L。long int x,y。 printf( ||||\n)。 printf( || 請登入 ||\n)。 printf( ||____________________||\n)。 scanf(%s,amp。 if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,請重新輸入 \n)。z)。 //口令檢查 scanf(%s,amp。} if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,退出 \n)。} printf(\n)。printf(\n)。 58 printf( \n)。 printf( \n)。 printf( \n)。 printf( \
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1