![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++ 遍历文件夹
qq_17070205
这个作者很懒,什么都没留下…
展开
-
标准的window API 便利文件夹 c++
什么也不说了,直接上源码,,,哈哈#include "stdafx.h" #include "windows.h" //获取该路径下的所有文件 void getFiles(LPCTSTR lpPath){ //临时路径 TCHAR szFind[MAX_PATH]={_T("\0")}; //查找文件的数据 WIN32_FIND_DATA findFileData; BOOL bRe转载 2015-07-21 10:26:52 · 308 阅读 · 0 评论 -
非标准的WINDOW API 根据路径遍历文件 c++
记录一下,,,,今天,也就是2015年7月20号,师傅让写一个遍历文件的控制台程序,,,,于是在网上找啊找,,,终于找到了,,,#include "stdafx.h" #include #include #include using namespace std; //获取该路径下的所有文件 void getFiles(string path,vector &files){ //文件句柄转载 2015-07-20 17:30:32 · 349 阅读 · 0 评论