}
}
void StudentMassage::RemoveItem() //删除学生信息{
char name[20] ;
Student *p = NULL , *temp = NULL ;
cout<<"\n\t\t请输入要删除的学生的姓名:" ;
cin>>name ;
if(p = FindItem(name))
{
temp = p->next ;
p->next = p->next->next ;
delete temp ;
cout<<"\n\t\t删除成功!"<<endl ;
Display() ;
}
else
{
cout<<"\t\t没有找到!"<<endl ;
cout<<"输入任意字符!继续......" ;
getch() ;
}
}
int StudentMassage::ListCount() //返回记录的学生总数{
Student *p ;
int n = 0 ;
if(!Head)
return 0 ;
for(p = Head->next ; p != End ; p = p->next) n ++ ;
return n ;
}
int StudentMassage::Count() //成绩统计
{
Student *p ;
int x , m , n ,count = 0 ;
if(!Head)
{
cout<<"\n\t\t没有资料可以统计!"<<endl ;
return 0 ;
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库C+课程设计报告学生成绩管理系统(13)在线全文阅读。
相关推荐: