Relative Content

Tag Archive for c++cstringloops

Loop is restarting itself when a correct input is entered

Here is my code.
(Goal) I want to ask a series of questions. The first is asking for a name, if the user inputs the name ‘William’ I want the program to proceed to ask for their birthdate. If that is answered correctly I want it to ask a series of yes or no questions. If the name ‘William’ is not entered, I want the program to re-ask for the users name until it is correct so it can proceed.