摘要:
编写一个非递归过程以O(N)时间反转单链表#include #include "./List.h"//利用我们自己实现的单链表Listusing namespace std;void PrintList(List L){ if(NULL == L) return; Position pos = First(L); cout"; pos = pos->next; } coutnext = NULL; while(NULL != pos) { Position tmp = pos->next; ... 阅读全文
posted @ 2013-07-17 11:58
老司机
阅读(900)
评论(1)
推荐(0)

浙公网安备 33010602011771号