So say you're having the user input a string like:
getline(cin,str);
How could you check for if the user put in the same letter twice?
For example, the user inputs "qwsq"
It should make the user try again until he makes an input that doesn't have any repeating characters.
Last edited on