Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- #include<cctype>
- using namespace std;
- int main() {
- char s, c[] = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
- int len = strlen(c);
- while(cin.get(s)){
- bool v = false;
- for (int j = 0; j < len; j++){
- s = tolower(s);
- if (s == c[j])
- cout << c[j - 2], v = true;
- }
- if (!v)
- cout << s;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment