最难的问题

 1 #include <iostream>
 2 #include <algorithm>
 3 #include <string>
 4 using namespace std;
 5 
 6 string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 7 string b = "VWXYZABCDEFGHIJKLMNOPQRSTU";
 8 
 9 int main(){
10 
11     string s;
12     while (getline(cin, s)){
13         for (char x : s){
14             if (x == ' ')
15                 cout << " ";
16             else
17                 cout << b[x - 'A'];
18         }
19         cout << endl;
20     }
21 
22     //system("pause");
23     return 0;
24 }
原文地址:https://www.cnblogs.com/ouyang_wsgwz/p/8516849.html