学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc

学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc

ID:10941749

大小:39.50 KB

页数:20页

时间:2018-07-09

学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc_第1页
学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc_第2页
学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc_第3页
学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc_第4页
学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc_第5页
资源描述:

《学生成绩管理系统包含登录和文件存储(Student achievement management system includes login and file storage).doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、学生成绩管理系统包含登录和文件存储(Studentachievementmanagementsystemincludesloginandfilestorage)#包括#包括<字符串。”#包括

2、intf(“请输入用户名:”);scanf(“%s”,和Y);如果(strcmp(y,y)==0){loop2:printf(“请输入密码:”);scanf(“%s”,&M);如果(strcmp(M,M)==0)printf(“登录成功!”);其他的{printf(“密码错误,请重新输入密码!!!”);gotoloop2;}}其他的{printf(“用户名错误,请重新输入!!!”);gotoLoop1;}系统(“CLS”);menu();}无效menu(){选择;无效shuru();无效shanchu();无效chazhao();无效x

3、iugai();无效output();无效tianjia();无效savescore();无效putoutfile();printf(“欢迎进入学生成绩管理系统”);printf(“1。输入学生信息”);printf(“2。删除学生信息”);printf(“3。查找学生信息”);printf(“4。修改学生信息”);printf(“5。输出所有学生的信息”);printf(“6。添加学生信息”);printf(“7。保存学生信息到文件”);printf(“8。读取学生文件信息”);printf(“请选择:”);s

4、canf(“%d”,与选择);开关(选择){案例1:shuru();打破;案例2:shanchu();打破;案例3:chazhao();打破;案例4:xiugai();打破;案例5:output();打破;案例6:tianjia();打破;案例7:savescore();打破;案例8:putoutfile();打破;默认值:printf(“你的输入有误!!!”);}}主(){无效denglu();denglu();}无效shuru(){整数;printf(“你想添加几个学生的信息?”);scanf(“%d”,和N);m=n;对于(int=i0;

5、i<;n;++){printf(“请输入第%d个学生的信息”,我+1);printf(“请输入学号:”);scanf(“%s”,ST[我]。Num);printf(“请输入姓名:”);scanf(“%s”,ST[我]的名字);printf(“请输入分数:”);scanf(“%d”,与ST[我]。评分);/*printf(“请输入第%d个学生的信息”,我+1);scanf(“%s%s%d”,ST[我]。Num,ST[我],[我]的名字,和ST。评分);*/}系统(“CLS”);printf(“学生信息添加完毕!!!“n);/*(i=0;i<;

6、i++){printf(“%s,%s%d”,ST[我]。Num,ST[我],[我]的名字,ST。评分);}/*menu();}无效shanchu(){字符数量[10];焦米;inti;如果(strcmp(ST[0]。名字”)==0){printf(“你还没有添加任何的学生信息,请先添加!!”);menu();}其他的{printf(“请输入你要删除的学生信息的学号:”);scanf(“%s”,NUM);getchar();为(i=0;i<;;+(+)){如果(strcmp(num,ST[我]。Num)==0){Printf(thestudent

7、'smessageis:);Printf("%s,%s,%d",st[i].num,st[i].name,st[i].score);Printf(doyoureallywanttodeletethestudentnumberfor%s'sstudent'sinformation?(y,or,n),num);Scanf("%c",&m);If(m=='y'

8、

9、m=='Y'){For(intj=i;j

10、ntf(deletefailed!!!");//printf(%d,I);Break;}If(i==N-1){Prin

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。