我的当前代码
#include<windows.h>
#include<fstream>
#include<direct.h>
#include<conio.h>
#include<sys/stat.h>
#include<filesystem>
int main(){
int choice;
std::string folder_n;
std::cin >> choice;
if(choice == 2){
std::cout << "Enter folder name" << std::endl;
std::cin >> folder_n;
filesystem::create_directory(folder_n);
std::cout << "created folder named " << folder_n << std::endl ;
}
return 0;
}
我的问题-->
错误:“文件系统”尚未声明
有人能告诉我为什么会出现这个错误,以及如何修复它吗
Note : 1. filesystem is included in my c++ version because intellisense is showing filesystem
2. I am using MinGw
3. My MinGW version is 9.2.0```