Will the file be one word per line or do you have to parse the line into individual words.
Once you have a single word I'd send it to vowel(). I don't know why you would want to send three strings to vowel(). You don't really need the string word in vowel(). I'd initialize count to zero before I tried to use it. I'd create a string containing all the vowels I'm looking for. Then I'd use a nest loop to compare each letter of the word passed to vowel with each letter in the string of vowels.
PS: Please use code tags when posting code to this board.
Last edited by Lerner; Oct 27th, 2007 at 8:54 pm.