int main() { clear(); bool exit = false; string cmd, arg; while (exit == false) { cout << endl << "Type command. Type 'help' to see the comands." << endl << "> "; cin >> cmd; if (cmd == "help") showhelp(); else if ( cmd == "b" || cmd == "w") wblist(cmd[0]); //as above (so below :D) else if (cmd == "exit") exit = true; else if (cmd == "restore") restore(); else if (cmd == "backup") backup(); else cout << "Incorrect command. Type again. Or use help by typing 'help'."; } return 0; }
b mediaplayer
exit
cin >> cmd >> arg;