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。c语言课程设计--学生证管理报告(编辑修改稿)
相关推荐
新版估 价 单(表格模板) 估 价 单客户名称 日期 类号 产品名称编号 产品规格 底价 品 名 规 格 数 量 单 价 金 额制造包装直接材料合 计直 接 材 料直 接 人 工小 计制 造 费 用包 装 销 售 费 用直接人工小 计成本汇总成 本 总 计拟售价格批示包 装 方 法每 日 生 产打 数外 箱 尺 寸 件 数 箱毛 重 实 量 箱经理 厂长 审核 估价
{ printf (\t\tWarning : Wrong Task! Please Select Again\n)。 } } } void checkin()//录入模块 { char name[20],sex,ch。 int inti=0,intj=0。 printf (\t\tInput Information(Name sex(F/M)):)。 scanf (%s %c,name,amp
le to the hotel*************\n)。 printf(\t\t\tPlease choose a option:\n)。 printf(\t\t\t in\n\t\t\t out\n\t\t\t \n\t\t\t customer39。 s message\n\t\t\t \n)。 printf(\t\t\toption:)。 } void checkout()
void save(struct student a[])。 //存档函数 19 void main() //主函数开始 { int number。 int x,y。 for(y=0。 y99。 y++) //将所有成绩清空 { for(x=0。 x6。 x++) { stu[y].f[x].s=NULL。 } }
residence, so retail firms cannot easily move out of the core area, because so many people live in center area. This dependence on customer convenience explains why retail production decreases less
ckRadius = centerX centerY ? centerY : centerX。 //用较小的一个作为钟表的半径 , 避免半径太大矩形放不开 clockRadius = clockRadius *。 int keduDRadius = clockRadius *。 int keduXRadius = clockRadius *。 int hourRadius =