How do I get a list of files in a directory in C++?

后端 未结 13 1475
南旧
南旧 2020-11-28 23:36

How do you get a list of files within a directory so each can be processed?

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 00:02

    Solving this will require a platform specific solution. Look for opendir() on unix/linux or FindFirstFile() on Windows. Or, there are many libraries that will handle the platform specific part for you.

提交回复
热议问题