![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 #include <iostream> 2 #include <string> 3 #include <vector> 4 using namespace std; 5 6 int main() 7 { 8 int n,i,j; 9 string s; 10 cin>>n; 11 12 for(i=1;i<=n;i++) 13 { 14 cin>>s; 15 cout<<"String #"<<i<<endl; 16 for (j=0;j!=s.size();j++) 17 { 18 if(s[j]<90 && s[j]>=65) 19 { 20 cout<<++s[j]; 21 } 22 if(s[j]==90) 23 { 24 cout<<'A'; 25 } 26 } 27 cout<<endl<<endl; 28 } 29 return 0; 30 }
ZOJ:1240