C++ 代码
#include <iostream>
using namespace std;
int main()
{
string s;int i;
getline(cin,s);
for(i=0;i<s.length();i++)
{
if(s[i]>='A'&&s[i]<='Y') s[i]+=1;else
if(s[i]=='Z') s[i]='A';
if(s[i]>='a'&&s[i]<='y') s[i]+=1;else
if(s[i]=='z') s[i]='a';
cout<<s[i];
}
return 0;
}