赞
踩
使用DOS命令 (测试成功)
#include <iostream> using namespace std; int main() { string folderPath = "E:\\database\\testFolder"; string command; command = "mkdir -p " + folderPath;