I was given an exercise to write a program that counts how many words read begin with a vowel, consonant, and others(non vowels or consonant). I wrote this topic some days back but the problem solvers doesn't seem to get my point. The confusion I m having a is; how do I count words in a single input when input is buffered. I know how to count characters. But to read word by word along single input, I'm confused. Please someone should help out.
Thanks.
Sample run will look some like this:
Enter some words:
My name is whatever 123 and how is 1950
3 words begin with vowel, 4 words begin with consonant, 2 words begin with others