文章
60
粉丝
361
获赞
43
访问
524.6k
#include<iostream>
#include <string>
#include<cstdlib>
using namespace std;
int main()
{
string s;
while(cin>>s)
{
int len=s.size();
for(int i=0;i<len;i++)
{
if(s[i]>='a'&&s[i]<='z')
{
s[i]=s[i]+3;
if(s[i]>'z')
s[i]=s[i]-26;
}
if(s[i]>='A'&&s[i]<='Z')
{
s[i]=s[i]+3;
if(s[i]>'Z')
s[i]=s[i]-26;
}
cout<<s[i];
}
cout<<" ";
}
system("pause");
return 0;
}
登录后发布评论
暂无评论,来抢沙发