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

正文內(nèi)容

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

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

下一頁面
 

【正文】 =NULL) p=pnext。return NULL。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。page, amp。paddr,amp。 printf(教師號 :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 if((fp=fopen(,w))==NULL) { printf(文件不存在 \n)。p1=p1next) fprintf(fp,%ld %s %s %d %s %s %d %s %ld,p1num,p1name,p1sex,p1age, p1education,p1position,p1wage,p1addr,p1phone)。 fclose(fp)。struct teacher*L。Lnext=NULL。pnum,amp。peducation,amp。pphone)。} if(Lnext==NULL)printf(文件為空 \n)。t=tnext) if(tnextnum==0)tnext=NULL。int n=1。 a=n/6。j++) { printf(\n\n)。p!=NULL。 } printf(\n)。 printf(請輸入要進(jìn)行的操作 :\n)。break。 if(j=2) p=Lnext。 break。 } else for(p=Lnext,k=0。 break。j)。 system(cls)。 FILE *fp。 printf(請輸入 :\n)。 break。Lnext=NULL。p1name,amp。p1position,amp。 while(p1num!=0) //以 0 作教師號代表結(jié)束 { n=n+1。 p1=(struct teacher*)malloc(sizeof(teacher))。p1sex,amp。p1wage,amp。 for(p1=Lnext。 56 fclose(fp)。 fclose(fp)。break。 struct teacher* inquiry(struct teacher *L)。 57 void output(struct teacher *L)。 char z[30]。 printf(\n\n ____________________\n)。 printf( || ||\n)。z)。} if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,請重新輸入 \n)。return。printf(\n)。 printf( $ \n)。 printf( Wele! \。 printf( *聰慧制作 * \n)。 printf( \n)。printf(\n)。z)。 scanf(%s,amp。 printf( \n)。 printf( || ||\n)。 int j。 int control。 struct teacher* fix(struct teacher *L)。 } } //============================================================== void main() { struct teacher* insert(struct teacher *L)。 break。 break。p1=p1next) fprintf(fp,%ld %s %s %d %s %s %d %s %ld\n,p1num,p1name,p1sex,p1age, p1education,p1position,p1wage,p1addr,p1phone)。p1phone)。p1education,amp。p1num,amp。 else p2next=p1。p1addr,amp。p1 55 age, amp。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。 printf(請輸入教師的教師號、姓名、性別、年齡、學(xué)歷、職位、月薪、地址、電話 \n)。j)。 int j,n=0。 } } } else printf(沒記錄 \n)。k(6*(j1))。 printf(請輸入要跳轉(zhuǎn)至第幾頁 :)。k++) p=pnext。k(j*6)。 } else p=Lnext。k((j2)*6)+1。c)。 printf(【 】【 ↑】【 ↓】【 52 →】【當(dāng)前頁 :%d/%d】 \n,j,a+1)。 printf(\n)。i6amp。 if((Lnext)!=NULL) { for(j=1。pnext!=NULL。 } //=============================================================== void output(struct teacher *L) //鏈表 分頁輸出 { struct teacher *p。 for(t=L。 tnext=p。pwage,amp。psex,amp。 while(!feof(fp)) {p=(struct teacher*)malloc(sizeof(teacher))。 return NULL。 } //=========================================================================== struct teacher* open() //打開文件 {FILE*fp。 fp=fopen(,a)。 } for(p1=head。 } 49 //=============================================================== void save(struct teacher *head) //文件保存 { struct teacher *p1。 printf(修改成功 \n)。pposition,amp。pname,amp。 printf(教師號 :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。amp。 48 while(teach_num!=pnum amp。 p=Lnext。 iphone=k。strcpy(jaddr,s)。jwage=iwage。strcpy(q,iposition)。strcpy(w,ieducation)。 x=jage。 strcpy(c,jsex)。 strcpy(b,jname)。j。 char h[50],s[50]。 char b[20],p[20]。 } //================================================ struct teacher* sort(struct teacher *L) /*排序 */ {struct teacher *i。 if(pnum!=num2) {printf(查詢失敗 \n)。num2)。long int num2。} if(num1==pnum) {qnext=pnext。 } else while(pnum!=num1 amp。 45 scanf(%ld,amp。 } //====================================================================================== struct teacher* Delete(struct teacher *L) { /*根據(jù)教師號刪除數(shù)據(jù) */ struct teacher *p,*q。in。tnext。} else{ pnext=Lnext。 scanf(%ld,amp。 printf(請輸入教師的地址 \n)。pposition)。 scanf(%s,amp。 printf(請輸入教師的年齡 \n)。pname)。 scanf(%ld,amp。 //======================================================== struct teacher* insert(struct teacher *L) /*頭插法插入*/ 43 {struct teacher *p,*t。 char addr[50]。 int age。 reading(stu)。i10。i10。i3。stu[i].score[2])。stu[i].name,amp。 printf(請輸入十個(gè)學(xué)生的名字,學(xué)號,及三科成績 \n)。 int avere(struct student stu[10],int i)。 41 void save1(struct student stu[10])。stu[i],sizeof(struct student),1,fp)。 for(i=0。 FILE*fp。 if(k!=i){t=stu[i]。i++) { k=i。i10。 } void px(struct student stu[10]) /*降序排序 */ {int avere(struct student stu[10],int i)。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])。 exit(0)。 } fclose(fp)。i10。 if((fp=fopen(,rb))==NULL) {printf(無法打開此文件 \n)。stu[i],sizeof(struct student),1,fp)。 exit(0)。 } return a。 for(i=0。 a=(stu[i].score[0]+stu[i].score[1]+stu[i].score[2])/3。} for(i=0。 void high(struct student stu[10],int n) /*單科最高分 */ {int i,m=0。 int num。 for(p=head。D,amp。 p=head。C)。 prin
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1