#include #include #include #include using namespace std; int main() { string cmd; whil
The condition in your while will never evaluate to true because you're testing to check the cmd string is equal to "exit" and "\\exit". One string can never be equals to two values at the same time.
true
"exit"
"\\exit"