Ignore the extra things in the header, as this is only a fragment of my code.
I am trying to create a game of rock paper scissors and I NEED have the input as a string. Currently, I am having issues repeating the program. Should the user place an invalid input, the program should prompt the user to reenter a selection. When there is a bad input, the program will just continue on if any key is pressed. What can I do to solve this problem?
Your problem is the use of the break keyword (line 41 of your example). What break does is pretty close to what the name implies - it breaks execution out of the loop and continues to the next statement in your program, which in this case is system("pause").
The do-while loop itself looks to be fine. If you remove the break statement it should do what you expect. However, I suggest that you declare a bool outside your loop and use it to keep track of whether or not the user made a valid input. Then, all you have to do in your while statement is check whether that bool is true: