摘要:
直接上代码了,这个比较容易理解。原代码有点问题,而且注释说的path也不一定为全目录,相对目录亦可。修改后在ubuntu 10.10上跑过,没问题。#include <sys/types.h>#include <dirent.h>#include <sys/stat.h>#include <unistd.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <string>#include <vector># 阅读全文
posted @ 2011-03-20 21:39 晓彻 阅读(1512) 评论(1) 推荐(0) 编辑