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

正文內(nèi)容

學(xué)生成績(jī)管理系統(tǒng)數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)-資料下載頁(yè)

2025-01-16 12:32本頁(yè)面
  

【正文】 not existed.\n)。 rewind(fp)。 } fclose(fp)。 } Delete() { FILE *fp。 struct person student1[30],student2[30]。 int i。 int k。 int j。 int flag。 char ch1。 char name[20]。 char ch。 char ch2。 clrscr()。 fp=fopen(,rb+)。 if(fp==NULL) { printf(can39。t open this file.\n)。 printf(wait for a second with patience.\nthe system is exiting.\n)。 getch()。 exit(0)。 } else { do{ 算法與數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng) 16 i=0。 j=0。 flag=0。 printf(input the name of students you are going to delete.\n)。 scanf(%s,name)。 while(fread(amp。student,sizeof(struct person),1,fp)==1) { if((strcmp(name,))!=0) { student2[j]=student。 j++。 } else { flag=1。 printf(name\t\t\tnum\tchinese\t\tEnglish\t\tmath\tsum\taverage\n)。 printf(%10s%6ld%%%%%\n,inese,)。 printf(Delete(Y/N)?\n)。 ch1=getchar()。 getchar()。 toupper(ch)。 if(ch==39。N39。) goto Loop。 } } printf(j=%d\n,j)。 k=j。 i=0。 fclose(fp)。 if(flag==0) printf( student you are searching not existed.\n)。 if(flag==1) printf(Congratulation!you succeed!!!\n)。 fp=fopen(,wb+)。 if(fp==NULL) { printf(can39。t open this file.\n)。 printf(wait for a second with patience.\nthe system is exiting.\n)。 getch()。 exit(0)。 } else { i=0。 算法與數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng) 17 do{ fwrite(amp。student2[i],sizeof(struct person),1,fp)。 i++。 }while(ik)。 } Loop: getchar()。 printf(Go on(Y/N)?\n)。 ch=getchar()。 getchar()。 }while(ch==39。y39。||ch==39。Y39。)。 printf(Show all(Y/N)?\n)。 ch2=getchar()。 getchar()。 if(ch2==39。y39。||ch2==39。Y39。) { rewind(fp)。 printf(name\t\t\tnum\tchinese\t\tEnglish\t\tmath\tsum\taverage\n)。 while(fread(amp。student,sizeof(struct person),1,fp)) { printf(%10s%6ld%%%%%\n,inese,)。 } } } fclose(fp)。 return_confirm()。 } Revise() { FILE *fp。 char ch。 char ch1。 long offset=sizeof(struct person)。 int flag=0。 char numstr[20]。 char name[20]。 clrscr()。 fp=fopen(,rb+)。 if(fp==NULL) { printf(can39。t open this file.\n)。 printf(wait for a second with patience.\nthe system is exiting.\n)。 getch()。 exit(0)。 } 算法與數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng) 18 else { again: printf(name of rivesing student:\n)。 gets(name)。 do{ flag=0。 fread(amp。student,sizeof(struct person),1,fp)。 if((strcmp(name,))==0) { flag=1。 printf(the following is information of student being deleted:\n)。 printf(name\t\tnum\tmath\tchinese\tEnglish\tsum\taverage\n)。 printf(%10s%6ld%%%%%\n,inese,)。 do{ printf(***informations for revising***\n)。 printf(====================================\n)。 printf( \n)。 printf( \n)。 printf( \n)。 printf(====================================\n)。 printf(give a choice:\n)。 ch=getchar()。 getchar()。 while(ch39。639。||ch39。139。) { printf( put is wrong.\nplease input another choice:\n)。 ch=getchar()。 getchar()。 } switch(ch) { case 39。139。:ass_revise(name)。 gets()。 break。 case 39。239。:ass_revise(num)。 gets(numstr)。 =atol(numstr)。 break。 case 39。339。:ass_revise(math)。 gets(numstr)。 =atof(numstr)。 break。 case 39。439。:ass_revise(English)。 算法與數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì) 學(xué)生成績(jī)管理系統(tǒng) 19 gets(numstr)。 =atof(numstr)。 break。 case 39。539。:ass_revise(chinese)。 gets(numstr)。 =atof(numstr)。 break。 case 39。639。:ass_revise(total)。 gets()。 ass_revise(num)。 gets(numstr)。 =atol(numstr)。 ass_revise(math)。 gets(numstr)。 =atof(numstr)。 ass_revise(English)。 gets(numstr)。 =atof(numstr)。 ass_revise(chinese)。 gets(numstr)。 =atof(numstr)。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1