#include <iostream>
using namespace std;
int main()
{
string folderPath1 = ".\\设计资料\\BOM";
string folderPath2 = ".\\设计资料\\gerber";
string folderPath3 = ".\\设计资料\\silk";
string command;
command = "mkdir " + folderPath1;
system(command.c_str());
command = "mkdir " + folderPath2;
system(command.c_str());
command = "mkdir " + folderPath3;
system(command.c_str());
return 0;
}
总是记不住标准的工程目录结构,就用C++写了一个小程序,用来在当前目录下生成工程目录结构,很简单的几段代码。
发生过生成的中文目录乱码的问题,在VsCode中选在以“Simplified Chinese(GBK)”即可。
参考:
https://blog.csdn.net/sinat_41104353/article/details/83149441