I know in C++ to change directories I could do something like this:
std::cout << "Which directory do you want to enter?:" << std::endl; std::string change; std::cin >> change; _chdir(change.c_str()); system("dir");
I tried troubleshooting it as well as looking up in google and I can't find a way to have the user select which directory they can enter. If someone would please give me a hint or a suggestion I would really appreciate it
Dreamincode wont let me show my code, every time I try it blocks me saying I am a hacker.
This post has been edited by albert003: 07 November 2019 - 12:53 PM