Aug 18, 2003 #1 3li773 Programmer Jan 23, 2003 20 CA ok I wanted to have my program make a directory with a name that was entered by the user all I know how to do is system("mkdir" I also tried system.mkdir(user_input); please help thnx
ok I wanted to have my program make a directory with a name that was entered by the user all I know how to do is system("mkdir" I also tried system.mkdir(user_input); please help thnx
Aug 18, 2003 #2 Sebastiani Programmer Nov 3, 2002 38 US #include <io.h> // for mkdir() #include <iostream> int main() { if(mkdir("C:\\MyDirectory"==0) cout << "Success!"; else cout << "Could Not Create Directory!"; cin.get(); } Upvote 0 Downvote
#include <io.h> // for mkdir() #include <iostream> int main() { if(mkdir("C:\\MyDirectory"==0) cout << "Success!"; else cout << "Could Not Create Directory!"; cin.get(); }
Aug 18, 2003 Thread starter #3 3li773 Programmer Jan 23, 2003 20 CA um... I was thinking of having it like the user enters a name and the directory is that name sorry for being unclear thnx for your time Upvote 0 Downvote
um... I was thinking of having it like the user enters a name and the directory is that name sorry for being unclear thnx for your time
Aug 18, 2003 #4 Sebastiani Programmer Nov 3, 2002 38 US Hmmm...pretty elementary stuff, are you that much of a newb? Post the entire program so we can see how far you got, first. Upvote 0 Downvote
Hmmm...pretty elementary stuff, are you that much of a newb? Post the entire program so we can see how far you got, first.