1、需要包含的头文件 #include "windows.h" #include "cstdlib" #include <iostream> 2、创建操作 CreateDirectoryA("E:/test", 0)