有没有标准的方法做findfirst,findnext与gcc on linux使用stl? [英] Is there a standard way to do findfirst, findnext with gcc on linux using stl?

查看:722
本文介绍了有没有标准的方法做findfirst,findnext与gcc on linux使用stl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎找不到gcc上的_findfirst / findfirst,_findnext / findnext API for Linux,并且实际上宁愿使用标准模板库(STL),如果它包括在那里。

I can't seem to find the _findfirst / findfirst, _findnext / findnext API on gcc for Linux, and would actually rather use the Standard Template Library (STL) for that if it is included there.

有人知道什么API可用于在Linux下的C ++(gcc)目录中的列表文件?

Does anyone know what API there is available for listing files in a directory under Linux for C++ (gcc)?

推荐答案

请查看 Boost.Filesystem 库。

特别是 basic_directory_iterator

这篇关于有没有标准的方法做findfirst,findnext与gcc on linux使用stl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆