![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
del函数是根据学号删除相应结点,并将删除后的头指针作为返回值;其中假设中每个节点包含学号、成绩等信息,且删除前已按学号递增排好序,学号唯一。则在划线处填写适当内容可以完成上述功能。 struct student{ int num; int score; struct student *next; }; struct student *del(struct student *head ,int num) { struct student *sp1,*sp2; if(head==NULL) return head; sp1=head; while(num!=_________) { sp2=sp1; sp1=sp1->next; } if(num==sp1->num) { if(sp1==head) { _________=sp1->next; } else if(sp1->next==NULL) { sp2->next=NULL; } else { sp2->next=sp1->next; } } return head; }