标签:list c语言实现 down 链表 单链表 lis ext ide next
bool upsidedown_list(LinkList L) {
Lnode *head, *tmp, *oldhead;
head = L;
tmp = L->next;
oldhead = L;
while (tmp) {
oldhead->next = tmp->next;
tmp->next = head;
head = tmp;
tmp = oldhead->next;
}
return true;
}
标签:list c语言实现 down 链表 单链表 lis ext ide next
原文地址:https://www.cnblogs.com/john0528/p/14682629.html