LQW332664203 @ 2019-07-30 17:17:22
#include <iostream>
#include <cstring>
using namespace std;
char a[51];
int n,i;
int main()
{
cin >> n;
cin.get();
cin>>a;
for (i=0;i<strlen(a);i++)
{
a[i]=(a[i]+n-'a'+1)%26+'a'-1;
if ((a[i]-'a') == -1)
a[i]='z';
}
cout << a;
return 0;
}
by pomelo_nene @ 2019-07-30 17:26:44
而且没记错get应该是读一个字符
它读的是'\r'
by LQW332664203 @ 2019-07-30 17:27:24
@C20211711刘君实1 thanks;