#include<stdio.h> int main() { /* freopen("data.in","r",stdin); freopen("data.out","w",stdout); //*/ const char s[]="`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; char c; while((c=getchar())!=EOF) { long i; for(i=1;s[i]&&s[i]!=c;i++) ; if(s[i]) putchar(s[i-1]); else putchar(c); } return 0; }
==============================================================================
本文转自被遗忘的博客园博客,原文链接:http://www.cnblogs.com/rollenholt/archive/2012/03/21/2410766.html,如需转载请自行联系原作者