#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
struct student //定义链表结构
{
int num;
int score;
struct student *next;
};
void main ()
{
struct student *creat(struct student *head); //链表建立函数
struct student *del(struct student *head,int num); //链表删除函数
struct student *insert(struct student *head,struct student *stu); //链表插入函数
void print(struct student *head); //链表打印函数
int m;
struct student *head,*stu;
head=NULL;
head=creat(head);
print(head);
printf("\n");
printf("Please input the num you want to delete:");
scanf("%d",&m);
printf("\n");
print(del(head,m));
printf("\n");
stu=(struct student *)malloc(sizeof(struct student));
printf("Please input the num you want to insert:");
scanf("%d",&stu->num);
printf("Please input the score you want to insert:");
scanf("%d",&stu->score);
printf("\n");
head=insert(head,stu);
print(head);