跟小D每日学口语
摘要: // 链表类class LL{publicstring value;publicLL link; // used for outputingthe linkdatapublicvoid OutPut() { Console.Write(value); if (link != null) { Console.Write(","); link.OutPut(); } }}逆序:privateLL Revert(LL t){ LL newList = null; while (t != null) { LL mid = new LL(); mid.value = t.value; 阅读全文
posted @ 2012-02-27 12:29 Danny Chen 阅读(515) 评论(0) 推荐(0) 编辑