标签:
template<typename LinkList> void converse(LinkList*L) { LinkList *p, *q; p = L->next; L->next = NULL; while (p) { q = p; p = p->next; q->next = L->next; L->next = q; } }
单链表就地逆转
原文地址:http://www.cnblogs.com/KennyRom/p/5887276.html