#include <direct.h>
void generateDirecorys_cbc(string path){//支持中文
string tmpPath = "";
for(auto ch : path){
tmpPath += ch;
if(ch == '/' || ch == '\\'){
if(_access(tmpPath.c_str(), 0) != 0){
int ret = _mkdir(tmpPath.c_str());
if(ret != 0){
cout<<"mkdir error~"<<endl;
return;
}
}
}
}
}