额```
比如连表中某一段 1-2-3-4
程序会让1指向3,下一个循环的时候还会让1指向4````
= = 没看错吧
比如连表中某一段 1-2-3-4
程序会让1指向3,下一个循环的时候还会让1指向4````
= = 没看错吧
How are you 怎么是你?
How old are you 怎么老是你?
node_t * ChangeTwoNodes(node_t *list) { node_t *pret=(list&&list->next?list->next:list), *p, *t; if(pret==list) return list; for (p=list->next; (t=p->next) && (list->next=t->next); list=t,p=list->next) { p->next=list; } p->next=list;list->next=t; return pret; }