-1

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.

1 Answers1

-1

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>
Mesar ali
  • 1,832
  • 2
  • 16
  • 18