#include <io.h>
#include <direct.h>
#include <string>
int main()
{
std::string prefix = "G:/test/";
if (_access(prefix.c_str(), 0) == -1) //如果文件夹不存在
_mkdir(prefix.c_str()); //则创建
}
cpp判断文件夹是否存在,创建文件夹
最新推荐文章于 2023-02-10 00:40:50 发布