struct stud_node *createlist()
{
struct stud_node*head=NULL;
struct stud_node* p=NULL;
struct stud_node *p2=NULL;
while(1)
{
p=(struct stud_node*)malloc(sizeof(struct stud_node));
scanf("%d",&p->num);
if(p->num==0)break;
else
{
scanf("%s",p->name);
scanf("%d",&p->score);
if(head==NULL)
{
head=p;
p2=p;
}
else
{
p2->next=p;
p2=p;
}
}
}
if(p2!=NULL)p2->next=NULL;
return head;
}
struct stud_node* del_link(struct stud_node* head,int m)
{
struct stud_node*p=head;
struct stud_node*p2=NULL;
if(head->score<m)
{
head=head->next;
p->next=NULL;
free(p);
}
else
{
p2=head;
while(p&&p->score>=m)
{
p2=p;
p