???????
#define NULL 0#define LEN sizeof(struct student)
#include <stdlib.h>
struct student
{long num;
float score;
struct student *next;
};
struct student *creat(int n)
{
int i;
struct student *head=NULL,*p1,*p2;
head=p2=(struct student *)malloc(LEN);
scanf("%1d%f",&p2->num,&p2->score);
for(i=2;i<=n;i++)
{
p1=(struct student*)malloc(LEN);
scanf("%1d%f",&p1->num,&p1->score);
p2->next=p1;
p2=p1;
}
p2->next=NULL;
return(head);
}
帮忙看下啥问题?????????