1 #include <iostream> 2 #include <string> 3 #include <cctype> 4 using namespace std; 5 6 int main(int ac, char*av[]) 7 { 8 string keyboard = "`1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./"; 9 string line; 10 11 getline(cin, line); 12 13 for (int i=0; i < line.length(); i++) 14 if(line[i] == ' ') 15 cout << " "; 16 else 17 cout << keyboard[keyboard.find_first_of(tolower(line[i])) - 2]; 18 19 cout << endl; 20 return 0; 21 }