提交时间:2019-12-27 19:24:49

运行 ID: 3909

#include<iostream> using namespace std; int main(){ int sb; char sjb[50]={0}; cin>>sb; for(int gd=0;gd<sb;gd++){ cin>>sjb[gd]; for(int pp;pp<sjb[gd];pp++){ if(sjb[pp]=='a'||sjb[pp]=='e'||sjb[pp]=='i'||sjb[pp]=='o'||sjb[pp]=='u') sjb[pp]-=32;cin>>sjb[pp]>>endl; else if((sjb[pp]>='a' && sjb[pp]<='z')||sjb[pp]=='A'||sjb[pp]=='E'||sjb[pp]=='I'||sjb[pp]=='O'||sjb[pp]=='U') continue; else sjb[pp]+=32;cin>>sjb[pp]>>endl; } } return 0; }