64,691
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <cctype>
using namespace std;
int main()
{
char a;
while(a!='q')
{
a=cin.get();
/* if(isalpha(a)!=0&&a!='q')
if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u' ||a=='A'||a=='E'||a=='I'||a=='O'||a=='U')
cout<<a<<" 是元音"<<endl;
else
cout<<a<<" 是辅音"<<endl;
*/
cout<<isalpha(a)<<endl;
}
}