SyntaxFix
Write A Post
Hire A Developer
Questions
You can use cstdlib
Although- http://www.cplusplus.com/articles/j3wTURfi/
#include <cstdlib> const int dir= system("mkdir -p foo"); if (dir< 0) { return; }
you can also check if the directory exists already by using
#include <dirent.h>