you should use the toupper() or tolower() function.. located in the <cctype> library.. to limit your user entries to either upper or lower case.. instead of listing all vowels in both upper and lower case...
Code:
if (ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch== 'U'||
ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch== 'u')
cout << "a Vowel" <<endl;
could be:
Code:
toupper(ch); //turn 'ch' to upper case
if (ch == 'A' || 'E' || 'I' || 'O' || 'U')
cout << "a Vowel" <<endl;
save yourself a little bit of code