欢迎来到天天文库
浏览记录
ID:11343725
大小:42.50 KB
页数:6页
时间:2018-07-11
《班级信息管理系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、班级信息管理系统#include#include#include#includestructcontacks{charname[10];charage[10];charsex[10];charmobile[10];chartelephone[10];charEmail[20];charaddress[20];}con[50];intk=0;voidenter();voiddisplay();voidmodify();void
2、del();voidsave();voidquery();voidmain(){inta;do{printf("***************************************************************");printf("*");printf("ttwelcometocontackssystem");printf("tt*");printf("************************************************
3、***************");printf("*");printf("t1.Inputinformation");printf("tttt*");printf("*");printf("t2.Displayinformation");printf("tttt*");printf("*");printf("t3.Modifyinformation");printf("tttt*");printf("*");printf("t4.Deleteinfo
4、rmation");printf("tttt*");printf("*");printf("t5.Saveinformation");printf("tttt*");printf("*");printf("t6.Queryinformation");printf("tttt*");printf("*");printf("t7.Exit");printf("tttt*");printf("******************************
5、*********************************");printf("Enteryouchoice:");scanf("%d",&a);switch(a){case1:printf("");enter();break;case2:printf("");display();break;case3:printf("");modify();break;case4:printf("");del();break;case5:printf("");save();brea
6、k;case6:printf("");query();break;case7:printf("");exit(0);break;default:printf("Thechoiceisbetween1to7.");}}while(a!=0);}voidenter(){charch[20];printf("Pleaseentertheinformation:");do{printf("name:");scanf("%s",con[k].name);printf("age:
7、");scanf("%s",con[k].age);printf("sex:");scanf("%s",con[k].sex);printf("mobile:");scanf("%s",con[k].mobile);printf("telephone:");scanf("%s",con[k].telephone);printf("Email:");scanf("%s",con[k].Email);printf("address:");scanf("%s",con[k].addre
8、ss);k++;printf("Doyoucontinuetoinputtheinformation(y/n):");scanf("%s",ch);}while(strcmp(ch,"y")==0
9、
10、strcmp(ch,"Y")==0);display();}voiddisplay(){inti;printf("theinformationis:");printf("nameagesexmobiletelephoneEmailaddress");for(i
此文档下载收益归作者所有