void print(student *head )
{
student *p;
cout<<"there"<<n<<"records"<<endl;
p=head;
if(head!=NULL)
do
{
cout<<p->num<<" "<<p->score<<endl;
p=p->next;
}while(p!=NULL)
}
34.写一print函数,将链表中的各数据遍历输出
来源:华佗小知识