Hey guys. I am trying to make a program that prompts the user to enter in a directory path, and then the program goes to that directory and displays what is inside.
string cString;
cin >> cString;
system("cd " cString); //this is what i am having trouble with.
system("DIR");
system("PAUSE");
Something like that. Does anyone know a way to do this? I keep getting errors. :(
Any help would be greatly appreciated =D