#include<stdio.h>typedefstructNode{int age;char* name;char* phone;structNode* pNext;}List;intmain(){
List a ={5,"一饼","123",NULL};
List b ={5,"二饼","124",NULL};
List c ={5,"三饼","125",NULL};
List d ={5,"四饼","126",NULL};
List e ={5,"一万","127",NULL};
List* p =&a;
a.pNext =&b;
b.pNext =&c;
c.pNext =&d;
d.pNext =&e;//遍历链表while(p !=NULL){printf("%d %s %s\n",p->age,p->name,p->phone);
p = p->pNext;}return0;}