请问错哪里啦啦阿拉啦!!!!
#include<stdio.h>#include<stdlib.h>
#define Max 10
struct List
{
int number;
struct List *next;
};
typedef struct List Node;
typedef Node* link;
link Create_list(link head)
{
link pointer,New;
int i,k;
pointer=head;
for(i=0;i<Max;i++)
{
New=(link)malloc(sizeof(Node));
scanf("%d",&k);
New->number=k;
pointer->next=New;
pointer=New;
}
return (head);
}
void Print_list(link head)
{
link pointer;
pointer=head;
while(pointer!=NULL)
{
printf("%d",pointer->number);
pointer=pointer->next;
}
}
void main()
{
link Head;
Head=(link)malloc(sizeof(Node));
Head=Create_list(Head);
Print_list(Head);
}