ImageVerifierCode 换一换
格式:DOCX , 页数:19 ,大小:76.28KB ,
资源ID:1605369      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/1605369.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(c语言程序设计课程学籍管理系统源代码.docx)为本站会员(b****2)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

c语言程序设计课程学籍管理系统源代码.docx

1、c语言程序设计课程学籍管理系统源代码附表 1.程序源码#include #include #include #include #define N 100 struct student char num13; char name18; float math; float english; float cprogram; float circuit; float law;float pingjun; float score5;void mainprint(); void scoreprint(); void studentprint(); void scoreInput(); void score

2、Stat(); void studentStatus(); void bukao(); void tuixue(); void xinmingdan(); void sortAnhao(); void jisuanPingjun(); void tongjiFenshu(); void fenxi();void mynew(); /* 创新功能 */void outstudent();void outdanke();void teshutuixue();void main()char choose=0,yes_no=0;do system(color 4f); system(cls); mai

3、nprint();printf( ); choose=getche( );switch(choose) case1:scoreInput();break; /* 成绩录入 */ case2:scoreStat();break;case3:studentStatus();break; case4:mynew();break;case0:break;default:printf(n %c 是非法选项! n); break;if(choose=0) break;printf(n 即将进入主菜单,要继续选择吗 (Y/N) ? n); do yes_no=getche( );while(yes_no!=

4、Y&yes_no!=y&yes_no!=N&yes_no!=n); while(yes_no=y|yes_no=Y);void mainprint() printf(|*|n);printf(| 欢迎使用学籍管理系统|n);printf(|*|n);printf(| 请输入选项编号 (04)|n);printf(| |n);printf(| 1- 录入成绩|n);printf(| 2- 统计成绩|n);printf(| 3- 处理学籍|n);printf(| 4- 创新功能|n);printf(| 0- 退出|n);|n);printf(void scoreInput() int i=0;ch

5、ar yes_no=0;struct student ex1N=0;FILE *fp=NULL;system(color 5f);system(cls);学生基本信息 .txt,w);if(fp=NULL) printf(n 打开文件失败! n); return; printf(n 欢迎进入成绩录入系统 n);printf(n 请输入第 %d 个记录 :n,i+1);printf(n 输入学生学号: ( 用#结束程序 );scanf(%s,ex1i.num);printf(n 输入学生姓名: ( 用#结束程序 );scanf(%s,ex1i.name);printf(n 请依次输入学生的数学、

6、英语、 c 编程、电路设计和法律基础的成绩: n); scanf(%f%f%f%f%f,&ex1i.math,&ex1i.english,&ex1i.cprogram,&ex1i.circuit,&ex1i.law); while(ex1i.num0!=#&ex1i.name0!=#) fprintf(fp,%3d%15s%16s%7.1f%7.1f%7.1f%7.1f%7.1fn,i,ex1i.num,ex1i.name,ex1i.math,ex1i.engl ish,ex1i.cprogram,ex1i.circuit,ex1i.law);i+;printf(n 请输入第 %d 个记录 :

7、n,i+1);printf(n 输入学生学号: (用 #结束程序 );scanf(%s,ex1i.num);printf(n 输入学生姓名: (用 #结束程序 ); scanf(%s,ex1i.name);printf(n 请依次输入学生的数学、英语、 c 编程、电路设计和法律基础的成绩: n); scanf(%f%f%f%f%f,&ex1i.math,&ex1i.english,&ex1i.cprogram,&ex1i.circuit,&ex1i.law);fclose(fp);void scoreStat() char choose=0,yes_no=0;system(color 9f);

8、dosystem(cls);printf(n 欢 迎 选 择 成 绩 统 计 系 统 n);/* 显示菜单 */|);printf(nprintf(n | 请输入选项编号 (04) |);printf(n| |);printf(n| 1- 按学号排序|);printf(n| 2- 按平均分数排序|);printf(n| 3- 统计分数段|);printf(n| 4- 返回|);printf(n| 0- 退出系统|);printf(n| |n);choose=getch();switch(choose) case1:sortAnhao();break;case2:jisuanPingjun();

9、break;case3:tongjiFenshu();break;case4:main(); break;case0:break;default:printf(n %c 是非法选项! n);break;if(choose=0) break;printf(n 要继续选择吗 (Y/N) ? n);do yes_no=getche(); while(yes_no!=Y&yes_no!=y&yes_no!=N&yes_no!=n);while(yes_no=y|yes_no=Y);void sortAnhao() int i=0,j=0,n=0;struct student ex2N=0,temp=0

10、;FILE *fp=NULL; system(color 9f);学生基本信息 .txt,r);if(fp=NULL) printf(n 打开文件失败! n); return; printf(n 欢迎进入按学号排序系统 n);while(feof(fp)=0) fscanf(fp,%3d%15s%16s%f%f%f%f%fn,&i,&ex2i.num,ex2i.name,&ex2i.math,&ex2i.english, &ex2i.cprogram,&ex2i.circuit,&ex2i.law);i+; n+; fclose(fp);for(i=0;in-1;i+)for(j=i+1;j0

11、) temp=ex2i;ex2i=ex2j;ex2j=temp; 按学号排序 .txt,w);if(fp=NULL) printf(n 打开文件失败! n); return; fprintf(fp, 序号 学号 姓名 高数 英语 编程 电路 法律 n);for(i=0;in;i+)fprintf(fp,%3d%15s%16s%7.1f%7.1f%7.1f%7.1f%7.1fn,i,ex2i.num,ex2i.name,ex2i.math,ex2i.engl按学号排序 .txtn);ish,ex2i.cprogram,ex2i.circuit,ex2i.law);printf(n 文件已保存至

12、fclose(fp);void jisuanPingjun() int i=0,j=0,n=0;char c=0;struct student ex2N=0,temp=0;FILE *fp=NULL; system(color 9f);学生基本信息 .txt,r);n); return; 欢迎使用按学号排序系统 n);while(feof(fp)=0) fscanf(fp,%3d%15s%16s%f%f%f%f%fn,&i,ex2i.num,ex2i.name,&ex2i.math,&ex2i.english,&e x2i.cprogram,&ex2i.circuit,&ex2i.law);i

13、+; n+; fclose(fp);for(i=0;in;i+)ex2i.pingjun=(ex2i.math+ex2i.english+ex2i.cprogram+ex2i.circuit+ex2i.law)/5; for(i=0;in-1;i+)for(j=i+1;jn;j+)if(ex2i.pingjunex2j.pingjun) temp=ex2i;ex2i=ex2j;ex2j=temp;按平均成绩排序 .txt,w);if(fp=NULL) printf(n 打开文件失败! n); return; fprintf(fp, 序号 学号 姓名 高数 英语 编程 电路 法律 平 均n);for(i=0;in;i+)fprintf(fp,%3d%15s%16s%7.1

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1