29 struct list * recv_item(struct list *head)
30 {
31 struct list *result = NULL;
32 struct list *next;
33
34 while(head) {
35 next = head->next;
36 head->next = result;
37 result = head;
38 head = next;
39 }
40 return result;
41 }
单链表逆置
最新推荐文章于 2024-07-08 14:26:40 发布