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

加入VIP,免费下载
 

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

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

下载须知

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

版权提示 | 免责声明

本文(学生综合测评系统Word文档下载推荐.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

学生综合测评系统Word文档下载推荐.docx

1、 double ave,zc; struct student *next;#define Len sizeof(struct student)int len; /链表长度int a=0,b=0,c=0,d=0,e=0;/用来存放成绩各阶的人数char stu10;struct student *Read() /读取数据文件保存到链表中,返回指向此链表头指针 struct student *head=NULL; struct student *p1, *p2; FILE *fp; coutstu; if(fp=fopen(stu,rb+)=NULL) cout打开文件出错! exit(0); w

2、hile(!feof(fp) if( (p1=(struct student*)malloc(Len)=NULL ) coutnext=p1; p2=p1; fclose(fp); return head;void save(struct student *head)/数据存盘 struct student *p; p=head;请输入你要存进去的文件(.dat) if(fp = fopen(stu, wb无法打开文件! system(pause); menu(); while(p) if(fwrite(p,Len,1,fp)!写入数据出错 return; p=p-next;数据存入成功!请按

3、任意键继续! getchar();/单次输入void sinput(struct student *p)coutp-number;请输入: name;请输入性别:sex;请输入家庭住址:adds;请输入联系:phone;请输入qq:qq;请输入语文成绩:chinese;if(p-chinese100|p-chinesemathenglishtxhppindeteacherchinese+p-math+p-english)/3.0;zc=(p-ave*0.6+p-txhp*0.1+p-pinde*0.2+p-teacher*0.1);你刚输入的信息为:tt学号:numbertt:namett性别

4、:sextt家庭住址:addstt联系:phonettQQ号:qqtt语文成绩:tt数学成绩:tt英语成绩:tt品德成绩:tt教师评分: return;/学生成绩录入函数struct student *input() struct student *head=NULL,*p1,*p2;/输入p1,p2链表最后节点 char ch=y; len=1; p2=p1=(struct student *)malloc(sizeof(struct student);请输入第lennext=NULL; paixu_num(head);输入学生信息完成!请按任意键返回主菜单!/学号排序void paixu_

5、num(struct student *head) struct student t,*r,*p,*q;/t交换p、q,r头结点 r=head; if(r=NULL) 学生信息不存在,请先输入学生信息! return; while(r) p=r; q=r- while(q) if(strcmp(q-number,p-number)0) /qnumber); strcpy(t.name,q-name); strcpy(t.sex,q-sex); strcpy(t.adds,q-adds); strcpy(t.phone,q-phone); strcpy(t.qq,q-qq); t.chinese

6、=q- t.math=q- t.english=q- t.txhp=q- t.pinde=q- t.teacher=q- strcpy(q-name,p-sex,p-adds,p-phone,p-qq,p- q-chinese=p-math=p-english=p-txhp=p-pinde=p-teacher=p- strcpy(p-number,t.number);name,t.name);sex,t.sex);adds,t.adds);phone,t.phone);qq,t.qq); p-chinese=t.chinese; p-math=t.math;english=t.english;

7、txhp=t.txhp;pinde=t.pinde;teacher=t.teacher; q=q- r=r-/插入函数struct student *insert() struct student *p,*p1,*head; head=Read(); p1=head; p=(struct student *)malloc(sizeof(struct student); char num14,ch;请输入你要插入的前一个学生的学号:num; while(p1) if(!strcmp(p1-number,num) sinput(p);next=p1- p1-next=p; len+; p1=p1-

8、 if(ch=学生信息插入成功!请按任意键返回!/修改学生信息struct student *alter() char temp13; struct student *p,*head;请输入要修改学生的学号:temp; while(p)strcmp(p-number,temp)学生信息修改成功!system(return head;/删除学生信息struct student *del() char temp13; int m=0; struct student *p1,*p,*head;/p1删除 p1=p=head;请输入你要删除学生的学号: while(p) if(strcmp(p1-nu

9、mber,temp)=0) if(p1=head)/删除的头结点 head=p1- else len-; m=1;学生信息删除成功!请按任意键返回主菜单. getchar(); return head; if(!m)查找不到这个信息!void find_num(struct student *head)/按学号查找 struct student *p=head; char temp9; int m = 0;请输入要查找的学生的学号while(p!=NULL) if(strcmp(p-number,temp) = 0)该学生的具体信息为:tt数学成绩tt英语成绩tt平均成绩avett品德成绩tt

10、老师评分tt综合成绩zcscore_paixu(head);tt考试名次ksmctt综测名次zcmc/继续向下寻找查找不到这个学号的信息!按任意键返回主菜单 return ;void find_name(struct student *head)/按查找 struct student *p= head;请输入要查找的学生的while(p) if(strcmp(p-name,temp) = 0)学号:void output() int i=1;tt老师评分:tt平均成绩:tt综合成绩:tt综合测评名次p=p-i+;请按任意键返回主菜单void max_student(struct student *head) struct student *p=head

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

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