#include <stdio.h>
struct node
{
int data;
struct node *next;
} ;
typedef struct node NODE;
main()
{
NODE a,b,c,*h,*p;
a.data=10;b.data=20;c.data=30;
h=&a;
a.next=&b;b.next=&c;c.next='\0';
p=h;
printf("%d\n",p->data);
while(p)
{
printf("%d",p->data);
p=p->next;
printf("\n");
}
}
onemoo
qq_放声就去笑_1
相关分类