#include
#include
#include
/* run this program using the console pauser or add your own getch, system (" pause ") or the input loop */
using namespace std;
Const int SIZE=10;
Int main (int arg c, char * * argv) {
Cout & lt; <"Enter words (q to quit) :" & lt;
Int vow=0;//vowel word number
Int cons=0;//consonant words number
Int others=0;
Cin & gt;> ch;
While (ch!="q")
{
Ch=tolower (ch [0]);
If (isalpha (ch [0]))
{
If (ch [0]=='a' | | ch [0]=='e' | | ch [0]=='o' | | ch [0]=='I' | | ch [0]=='u')
+ + vow;
The else
+ + cons;
}
The else
+ + others;
//cin. The get ();
Cin & gt;> ch;
}
Cout & lt;
}
CodePudding user response:
Cin will ignore separator (Spaces break tabs)CodePudding user response: