标签:
Node Reverse(Node head){
if(head == NULL)
return head;
Node pre,cur,ne;
pre = head;
cur = head->next;//当前要逆转结点
while(cur){
ne = cur->next;
cur->next = pre;
pre =cur;
cur = ne;
}
head->next = NULL;
head = pre;
return head;
}标签:
原文地址:http://blog.csdn.net/sxhlovehmm/article/details/44851427