标签:ar io for as br ui har return print
#include<stdio.h>
#include<string.h>
int main()
{
int i,k,x=0;
char c;
char s[100]="`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;‘ZXCVBNM,./";
k=strlen(s);
while((c=getchar())!=EOF)
{
x=0;
for(i=1;i<k;i++)
{
if(s[i]==c)
{
x=1;
putchar(s[i-1]);
}
}
if(x==0)
printf("%c",c);
}
return 0;
}
标签:ar io for as br ui har return print
原文地址:http://www.cnblogs.com/YanMings/p/4168604.html