Hello everyone, I am in a Computer Science class where we deal with C++. For an assignment we need to use strings and such. But, anyways we are to use specific functions for our assignment and I am having trouble constructing a certain one.
The function is "PromptUserToFindLongestSequence" and what it does is ask the user if they want to find a longest sequence of numbers. The inputs are Y and N for yes and no. The function is supposed to re-prompt the user if their input is invalid, but I can't seem to construct this function. Can anyone give me some tips on how to build this function? Your tips will be much appreciated.