c语言课程设计--学生证管理报告(编辑修改稿)内容摘要:

strcpy(stu[m].sex,stu[m+1].sex)。 strcpy(stu[m].college,stu[m+1].college)。 strcpy(stu[m].major,stu[m+1].major)。 strcpy(stu[m].Edusystem,stu[m+1].Edusystem)。 strcpy(stu[m].class,stu[m+1].class)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 } break。 } } if(w3==1||w4==1) {save(n)。 printf(\n\nSuccessful.^_^.)。 printf(\n\nWhat do you want to do ?\n\t 1).Search anothe 2).Back [ ]\b\b)。 2020 年 C 语言课程设计实习报告(一)学生证管理系统 scanf(%d,amp。 w2)。 } } } while(w2==1)。 menu()。 break。 } case 2: { do {do {k=1。 printf(\n\nEnter class that you want to search! class:)。 scanf(%s,)。 printf_face()。 for(i=0。 in。 i++) if(strcmp(,stu[i].class)==0) {k=i。 printf_one(k)。 } if(k==1) {printf(\n\nNO exist! please)。 printf(\n\nAre you again?\n\t1).again 2).NO and back [ ]\b\b)。 scanf(%d,amp。 w1)。 if(w1==2)printf_face()。 } } while(k==1amp。 amp。 w1==1)。 w4=0。 w3=0。 if(k!=1) {printf(\n\nWhat do you want to do ?\n\t1).Search another 2).Modify 3).Delete 4).Back menu [ ]\b\b)。 scanf(%d,amp。 w2)。 switch(w2) {case 2:w3=modify_data(k,n)。 break。 case 3:{printf(\nAre you sure?\n\t1).Sure 2).No and back [ ]\b\b)。 scanf(%d,amp。 w4)。 if(w4==1) for(m=0。 mn1。 m++) {strcpy(stu[m].number,stu[m+1].number)。 strcpy(stu[m].name,stu[m+1].name)。 strcpy(stu[m].sex,stu[m+1].sex)。 2020 年 C 语言课程设计实习报告(一)学生证管理系统 strcpy(stu[m].college,stu[m+1].college)。 strcpy(stu[m].major,stu[m+1].major)。 strcpy(stu[m].Edusystem,stu[m+1].Edusystem)。 strcpy(stu[m].class,stu[m+1].class)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 strcpy(stu[m].,stu[m+1].)。 } break。 } } if(w3==1||w4==1) {save(n)。 printf(\n\nSuccessful.^_^.)。 printf(\n\nWhat do you want to do ?\n\t 1).Search anothe 2).Back [ ]\b\b)。 scanf(%d,amp。 w2)。 } } } while(w2==1)。 menu()。 break。 } } } 模块 [程序 ]: stat() {FILE *fp。 int i,n=0。 printf(Output all student record:\n)。 fp=fopen(,r)。 for(i=0。 fread(amp。 stu[i],sizeof(struct student),1,fp)!=0。 i++) { printf(%s %s %s %s %s %s %s %s %s %s %s %s %s\n, stu[i].number,stu[i].name,stu[i].sex,stu[i].college,stu[i].major,stu[i].Edusystem,stu[i].cla ss,stu[i].,stu[i].,stu[i].,stu[i].,stu[i 2020 年 C 语言课程设计实习报告(一)学生证管理系统 ].,stu[i].)。 n++。 } fclose(fp)。 printf(There are %dstudents in our school.\n,n)。 printf(\nPass any key to。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。