Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
刚开始学习 boost::filesystem。
谢谢
path::iterator遍历形成路径的目录。如果路径是,/a/b/c/d它将遍历/、a、b和。cd
path::iterator
/a/b/c/d
/
a
b
c
d
directory_iterator而是遍历目录中的文件。
directory_iterator
不,directory_iterator不会对文件进行排序,它们将按照与操作系统调用相同的顺序返回。