摘要:
前提:链表结点结构体:typedef struct node{ ElemType data; node *next;}Node;1、最初设想:定义三个Node指针:pos、pre、the_next 分别指向当前结点、当前结点的上一个结点、当前结点的下一个结点Node* convert(Node *head){ Node *pos,*pre,*the_next; pos=head; pre=NULL; the_next=pos->next; while(pos!=NULL) { if(pre==NULL) //当前结点为... 阅读全文