#include<iostream>
#include<string>
using namespace std;
int main()
{
unsigned int vowel = 0;
unsigned int consonant = 0;
unsigned int other = 0;
string ch;
cout << "请输入(退出请输入q):" << endl;
while ((cin>>ch))
{
if (ch.length() == 1 && ch[0] == 'q')
{
break;
}
if (isalpha(ch[0]))
{
if (ch[0] == 'a' || ch[0] == 'e' || ch[0] == 'i' || ch[0] == 'u' || ch[0] == 'o')
{
vowel++;
}
else
{
consonant++;
}
}
else
{
other++;
}
}
cout << "有"<<vowel <<"个元音打头的单词"<< endl;
cout << "有"<<consonant<<"个辅音打头的单词" << endl;
cout << other <<"个单词不属于这两类"<< endl;
system("pause");
return 0;
}