#include<iostream>
using namespace std;
int main()
{
const int N=1000;
char a[N];
cin.getline(a,1000); // getline(cin,a);
for(int i=0;a[i]!='\0';i++)
{
if(a[i]>='a'&&a[i]<='z')
{
a[i]=a[i]-32;
}
if(a[i]>='A'&&a[i]<='Z')
{
a[i]=(a[i]+3-'A')%26+'A'; //加3是偏移量先减去A除26使循环在26个字母之内,在加A转换字母
}
}
cout<<a;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: