system call is the programmatic way in which a computer program requests a service from the kernel of the operating system to be executed
#include <string>
std::string cmd="mkdir foo";
system(cmd.c_str());
}
or you can call mkdir
directly"
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
mkdir("foo", 0755);