getch() ;
} ; break ;
case 3:
{
cout<<"\n\t\t请输入分数段的起始分数和终止分数:" ;
cin>>m ;
cin>>n ;
for(p = Head ; p != End ; p = p->next)
if(p->english >=m && p->english <= n)
{
count ++ ;
if(count == 1)
cout<<endl<<HEADER1<<HEADER2<<HEADER3 ;
p->show() ;
}
cout<<"\n\t\t英语成绩在"<<m<<"--"<<n<<"的学生共有"<<count<<"人!\n"<<endl ;
cout<<"输入任意字符,继续......." ;
getch() ;
} ; break ;
}
}
void StudentMassage::Swap(Student *p1 , Student *p2) //交p1,p2学生信息
{
Student *temp = new Student ;
strcpy(temp->name , p1->name) ;
strcpy(temp->id , p1->id) ;
temp->math = p1->math ;
temp->chinese = p1->chinese ;
temp->english = p1->english ;
temp->sum = p1->sum ;
strcpy(p1->name , p2->name) ;
strcpy(p1->id , p2->id) ;
p1->math = p2->math ;
p1->chinese = p2->chinese ;
p1->english = p2->english ;
p1->sum = p2->sum ;
strcpy(p2->name , temp->name) ;
strcpy(p2->id , temp->id) ;
p2->math = temp->math ;
p2->chinese = temp->chinese ;
p2->english = temp->english ;
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库C+课程设计报告学生成绩管理系统(15)在线全文阅读。
相关推荐: