摘要: Last semester I didn’t grasp the idea of linked list.Here is a review about the basic manipulation of the linked list #include<iostream>#include<string>using namespace std;int n;struct num... 阅读全文
posted @ 2010-04-06 12:59 梦涵 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 list&array:The size of list is variable while array contains constant number of elements. 2Stack: Stack is a version of list that is particularly us... 阅读全文
posted @ 2010-04-04 21:58 梦涵 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 这道题刚开始的想法就是把属于文件的名称与一个文件夹中的所有条目存入不同的数组中,然后分别输出。但是最终做的时候如何去判断到底是ROOT下的文件还是其他的文件夹中的文件。主要还是自己还没有建立递归的思维。认真思考的话,如果在每次递归的时候才新开数组,而统一把读入‘f’时与读入‘d时分成两种情况处理。把... 阅读全文
posted @ 2010-04-03 20:02 梦涵 阅读(1423) 评论(0) 推荐(1) 编辑