I have to write a program in c++ that creates a directory but it must be work on linux and windows(10) . I already wirte a program that creates a folder(directory) but with the library it is not compatible with linux .
thank you in advance.
I have to write a program in c++ that creates a directory but it must be work on linux and windows(10) . I already wirte a program that creates a folder(directory) but with the library it is not compatible with linux .
thank you in advance.
Use boost library as
boost::filesystem::create_directory(path);
To use boost, you have to add boost library and use this header for filesystem
#include <boost/filesystem.hpp>