I need some help (SOLVED!)

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
std::string BeginCom;
            cin >> BeginCom;
            
            if(BeginCom == "Play"){

            system("CLS");
            BeginCommandPromptTextBasedGame();
            }else if(BeginCom == "play"){
            system("CLS");
            BeginCommandPromptTextBasedGame();

            }else if(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;
            }else if(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;
            }

            }
Last edited on
Nevermind I figured it out.
Make it as a solved issue.
Topic archived. No new replies allowed.