Creating Folder C++

How do you create a folder with a name that is entered into the prompt?
For ex: What is your name? - cin name; - mkdir("c:/" + name); or something like that?
Greatly appreciated for any help.
I suppose http://msdn.microsoft.com/en-us/library/aa363855%28VS.85%29.aspx
You could also do system("mkdir "+path), but see http://www.cplusplus.com/forum/articles/11153/
There are also cross platform alternatives like boost filesystem library.
Topic archived. No new replies allowed.