c++大作业学生信息管理系统源代码(6)

时间:2025-03-10

c++大作业学生信息管理系统源代码

head=head->next;

}

if (b==1) cout<<"无此分数段的语文成绩记录!"<<endl;

}

//◆5(4)

void chashuxue(student *head) //查询数学成绩功能

{

int h,l,b=1;

cout<<"请输入您要查询的【数学】成绩的分数段: "<<endl;

cout<<"起始分 终止分"<<endl;

cin>>l; cin>>h;

cout<<"此分数段的学生数学成绩信息是:"<<endl;

cout<<"学号 姓名 班级 语文 数学 英语 总分 均分"<<endl;

while (head)

{

if ((head->maths>=l)&&(head->maths<=h))

{

b=0;

cout<<head->num<<" "<<head->name<<'\t'<<head->clas<<'\t'<<" "<<head->chinese<<'\t'

}

head=head->next;

}

if (b==1) cout<<"无此分数段的数学成绩记录!"<<endl;

}

//◆5(5)

void chayingyu(student *head) //查询英语成绩功能

{

int h,l,b=1;

cout<<"请输入您要查询的【英语】成绩的分数段: "<<endl;

cout<<"起始分 终止分"<<endl;

cin>>l; cin>>h;

cout<<"此分数段的学生英语成绩信息是:"<<endl;

cout<<"学号 姓名 班级 语文 数学 英语 总分 均分"<<endl;

while (head)

{

if ((head->english>=l)&&(head->english<=h))

{

b=0;

cout<<head->num<<" "<<head->name<<'\t'<<head->clas<<'\t'<<" "<<head->chinese<<'\t' <<head->maths<<'\t'<<head->english<<'\t'<<head->total<<'\t'<<setprecision(3)<<head->average<<endl;

c++大作业学生信息管理系统源代码(6).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219