xmkk

导航

 

2013年8月29日

摘要: 前提:链表结点结构体: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) //当前结点为... 阅读全文
posted @ 2013-08-29 11:57 xmkk 阅读(693) 评论(0) 推荐(0) 编辑