c++大作业学生信息管理系统源代码(7)
时间:2025-03-10
时间:2025-03-10
c++大作业学生信息管理系统源代码
} head=head->next;
}
if (b==1) cout<<"无此分数段的英语成绩记录!"<<endl;
}
//◆5(6)
void chazongfen(student *head) //查询总分成绩功能
{
int h,l,b=1;
cout<<"请输入您要查询的【总分】成绩的分数段: "<<endl;
cout<<"起始分 终止分"<<endl;
cin>>l; cin>>h;
cout<<"此分数段的学生总分成绩信息是:"<<endl;
cout<<"学号 姓名 班级 语文 数学 英语 总分 均分"<<endl;
while (head)
{
if ((head->total>=l)&&(head->total<=h))
{
b=0;
cout<<head->num<<" "<<head->name<<'\t'<<head->clas<<'\t'<<" "<<head->chinese<<'\t'
}
head=head->next;
}
if (b==1) cout<<"无此分数段的总分成绩记录!"<<endl;
}
//◆6(1)
void yuwen(student *head) //按语文成绩从高到低排序功能
{
student *p,*q;
char a[30];
int b;
float c;
p=head;
while (p)
{
q=p->next;
while (q)
{ <<head->maths<<'\t'<<head->english<<'\t'<<head->total<<'\t'<<setprecision(3)<<head->average<<endl;
上一篇:李君如谈建设学习型党组织