摘要: 1 void reverse(ListNode*& pre,ListNode* cur,ListNode* nxt){ 2 while(cur){ 3 nxt=cur->next; 4 cur->next=pre; 5 pre=cur; 6 cur=nxt; 7 } 8 } 定义一个这样的函数: 初 阅读全文
posted @ 2020-03-07 15:26 B_luePhantom 阅读(101) 评论(0) 推荐(0) 编辑