|
|
@ -201,14 +201,14 @@ int main(void) {
|
|
|
|
head = (LinkList*)malloc(sizeof(LinkList));//分配地址
|
|
|
|
head = (LinkList*)malloc(sizeof(LinkList));//分配地址
|
|
|
|
head->prev=NULL;
|
|
|
|
head->prev=NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
LinkList wang={"1003","11","wang",1,2,3,6,head,NULL};
|
|
|
|
LinkList wang={"1003","11","wang",1,2,3,6,head,NULL};
|
|
|
|
LinkList zhang={"1002","22","zhang",3,2,3,8,&wang,NULL};
|
|
|
|
LinkList zhang={"1002","22","zhang",3,2,3,8,&wang,NULL};
|
|
|
|
LinkList li={"1001","11","li",1,4,3,9,&zhang,NULL};
|
|
|
|
LinkList li={"1001","11","li",1,4,3,9,&zhang,NULL};
|
|
|
|
head->next=&wang;
|
|
|
|
head->next=&wang;
|
|
|
|
wang.next=&zhang;
|
|
|
|
wang.next=&zhang;
|
|
|
|
zhang.next= &li;
|
|
|
|
zhang.next= &li;
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while(1){
|
|
|
|
while(1){
|
|
|
|