How do you have the user input the folder name and have it created in the desktop (for mac)? This is what I have so far.. (and extra code underneath)
#include &
Use Boost Library (though there will be overhead of setting up boost on your system but its worth for doing many other stuffs in C++): boost::filesystem::create_directories()
#include // your code.... boost::filesystem::create_directories("/bla/a");