#include
#include
typedef struct node
{
int data;
struct node *next;
}LinkedList;
void creat(LinkList *h)
{
LinkList *t,p;
int x;
t=(LinkList *)malloc(sizeof(LinkList));
printf("please input value,stop input '0'");
scanf("%d",&x);
p=h=NULL;
while(x)
{
t=(LinkList *)malloc(Linklist);
t->data=x;
t->next=NULL;
if(h==NULL) p=h=t;
else { p->next=t;p=t;}
scanf("%d",&x);
}
}
void main()
{
LinkList *h;
creat(h);
delet(h);
}