Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstring>
  3. int main() {
  4. char keyboard[] = {"1234567890-=qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./"}, input[100];
  5. while (gets(input)) {
  6. for (char i = 0; i < strlen(input); ++i) {
  7. if (input[i] == ' ') putchar(' ');
  8. else putchar(*(strchr(keyboard, input[i]) - 2));
  9. }
  10. puts("");
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement