输入一串字符串,用原来的字母后面的第四个字母代替原来的字母。例如:China->Glmre
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
string str,tempstr;
int n,i;
char c[255];
cout<<"Please Input A String:";
cin>>str;
n=str.length();
for(i=0;i<n;i++)
{
c[i]=str.at(i)+4;
cout<<c[i];
}
cout<<endl;
return 0;
}