Thread: confused
View Single Post
Join Date: Jul 2005
Posts: 1,761
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 283
Lerner Lerner is offline Offline
Posting Virtuoso

Re: confused

 
0
  #2
Oct 27th, 2007
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.
Reply With Quote