什么是与FindFirstFile
类似的提升功能?我想在使用boost的文件夹中找到*.exe
。
例如:
HANDLE handle = FindFirstfile(buf, &finds);
while(FindNextFile(handle, &finds) { // using file }
答案 0 :(得分:0)
你可以使用directory_iterator:
#include <boost/filesystem.hpp>
using namespace std;
using namespace boost::filesystem;
...
path mypath("/where/ever/");
for(directory_iterator it( mypath ); ; ++it) {
...
}
并符合您的标准。