一个链表问题``
#include "stdio.h"#include "malloc.h"
#define LEN sizef(struct people)
#define NUll 0
struct people
{
int num;
struct people *next;
};
struct people *creat(void)
{
struct people *head;
struct people *p1,*p2;
int i=1,n;
head=p2=(struct people*) malloc(LEN);//语法错误:缺少')'前'类型' 为什么会这样??
scanf("%d",&n);
while(i<=n)
{
p1=p2;
p1->num=i;
p2=(struct people*) malloc(LEN);//语法错误:缺少')'前'类型'
p1->next=p2;
}
p2->next=NULL;
}