页首Html代码

返回顶部
摘要: Windows C++ 获取当前文件夹下有几个文件百度下 居然没有。linux下通过:struct dirent **namelist;int total=scandir(dir,&namelist,0,alphasort);for(i=0;i<total;i++){ free(namelist[i]);}free(namelist);//scandir后需要释放空间的!!!!!!!就可以搞定,在windows下没有dirent.h 头文件和实现。难道 这个 也算是 操作系统 相关的?不同操作系统 这么简单一个功能,还要各自实现,而不能 如同 stdio.h一样 全部 都是标准的 阅读全文
posted @ 2012-09-10 10:42 ayanmw 阅读(2210) 评论(0) 推荐(0) 编辑

页脚Html代码