Hi, I need help on this homework assignment I'm currently on.
Design a value returning function that will expect one char type parameter. If the character is a vowel it should return true. If the character is not a vowel, it should return false. For the purposes of the function a vowel is an upper or lower case A, E, I, O, or U. To test your function, create a program that reads a series of characters from a text file via Linux redirection. The program must call the vowel checking function to test each character. As output, the program (main function) should display a message stating how many vowels were found in the file
The code works fine if I only type in vowels(a,e,i,o,u). However when I type in other letters in the alphabet along with vowels the program doesn't work.
Good for you. Please mark it as solved. And if you ever decide to post in the future, please put your code between code tags, otherwise its unreadable - http://www.cplusplus.com/articles/jEywvCM9/