#include #include #include #include using namespace std; int main() { string cmd; whil
Your problem are the while conditions.
You probably would want do exit the loop when the user enters exit, so you should use:
while(strcmp(cmd.c_str(),"exit")!=0 && strcmp(cmd.c_str(),"\exit")!=0)