Wyo C++ Name
-
Ch. 9 Wksht #7
Write a function that accepts a string variable and returns the number of vowels contained in the string.
Write out the complete function definition below following the function header provided.
int countVowels(apstring stringIn)
// precondition: stringIn is a string variable consisting of one
or more lowercase letters
// postcondition: returns the number of vowels in stringIn where
a, e, i, o, and u are considered vowels