}
cout<<"\n\t\t排序完成!"<<endl ;
StudentMassage::Display() ;
getch() ;
}
else
{
for(p = Head->next ; p != End ; p = p->next)
for(k = p->next ; k != End ; k = k->next)
{
if(p->sum > k->sum)
StudentMassage::Swap(p , k) ;
}
cout<<"\n\t\t排序完成!"<<endl ;
StudentMassage::Display() ;
getch() ;
}
} ; break ;
}
}
void StudentMassage::save() //存入文件
{
out.open("sort.txt");
for(Student *p=Head->next;p!=End;p=p->next)
out<<p->name<<"\t"<<p->id<<"\t"<<p->math<<"\t"<<p->chinese<<"\t"< <p->english<<"\t"<<p->sum<<'\n';
out.close();
}
void main()
{
int x ;
bool quit = false ;
cout<<"\n\n\n\n\n\n\n\n" ;
cout<<"\t\t********************************************"<<endl ;
cout<<"\t\t 欢迎使用学生成绩管理系统!"<<endl ;
cout<<"\t\t********************************************"<<endl ;
StudentMassage Grade ;
Sleep(1000) ;
while(!quit)
{
system("cls") ;
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库C+课程设计报告学生成绩管理系统(19)在线全文阅读。
相关推荐: