I'm trying to get the following code to loop back to the beginning and repeat the user input/results, but it just repeats the previous results. It will terminate properly when any character other than 'y' is entered. Any recommendations on how to reset switch values after it loops back around?
Thank you both for taking time to reply. The link provided helped make it clear why getline is required in this instance.
Codewriter,
I ran your revision of my code and it works very well. I have just one question. If you happened to run the program, you will notice that it takes the user inputted sentence and displays the number of vowels contained. If one chooses to proceed and perform another vowel analysis, the program will display both the new vowel count as well as the old. Is there a way to 'reset' the vowel count after each iteration?