提交时间:2019-12-26 21:33:41
运行 ID: 3893
#include<iostream> #include<string.h> using namespace std; int main(){ char a[1001]; int n,i=0,j=0,k; cin>>n; while(n>0){ scanf("%s",a); while(a[i]!='\0'){ if(a[i]=='a' || a[i]=='e' || a[i]=='i' || a[i]=='o' || a[i]=='u' ) a[i]= a[i] - 'a' + 'A'; else if(a[i]!='A' && a[i]!='E' && a[i]!='I' && a[i]!='O' && a[i]!='U' &&(a[i]>='A' && a[i]<='Z')) a[i]= a[i] - 'A' + 'a'; i++; } // printf("\n"); i=0; n--; puts(a); } return 0; }