Original Post
Hi. Im trying to learn CPP through developing very basic games.. Im writing a text based game called Traitor, were the player is in a room with a couple of people and through dialog must find the traitor. Im trying to write a input loop that only quits if command == /"quit" But the loop ends any way. Any ideas? source:
string command;
do
{
cin >> command;
if (command == "/help")
help();
if (command == "look")
look();
if (command == "talk")
talk();
}while (command == "/quit");