This works correctly I just want to loop it to were it will keep registering everytime you type instructions, or anything else but when you click play it quits the loop and starts. I am not sure how to do this, someone please help.
std::string BeginCom;
cin >> BeginCom;
if(BeginCom == "Play"){
system("CLS");
BeginCommandPromptTextBasedGame();
}elseif(BeginCom == "play"){
system("CLS");
BeginCommandPromptTextBasedGame();
}elseif(BeginCom == "details/"){
std::cout << "This is a Mid-Evil RPG(You are currently playing the text version). The point of the game is to live your life and live your story until the very end. The game interacts to choices you make." << std::endl;
cin >> BeginCom;
}elseif(BeginCom == "Details/"){
std::cout << "This is a Mid-Evil RPG(You are currently playing the text version). The point of the game is to live your life and live your story until the very end. The game interacts to choices you make." << std::endl;
cin >> BeginCom;
}
}