uva 10222 - Decode the Mad man

时间:2023-03-10 05:10:27
uva 10222 - Decode the Mad man
 #include <iostream>
#include <string>
#include <cctype>
using namespace std; int main(int ac, char*av[])
{
string keyboard = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
string line; getline(cin, line); for (int i=; i < line.length(); i++)
if(line[i] == ' ')
cout << " ";
else
cout << keyboard[keyboard.find_first_of(tolower(line[i])) - ]; cout << endl;
return ;
}