22122817yss @ 2022-10-30 16:52:59
#include <string.h>
using namespace std;
int main()
{
char letter[51];
int n,l;
cin>>n;
n=n%26;
cin>>letter;
l=strlen(letter);
for(int k=0;k<l;k++){
if(letter[k]+n<'z')
letter[k]+=n;
else
letter[k]='a'+letter[k]+n-'z';
}
for(int j=0;j<l;j++)
cout<<letter[j];
return 0;
}```
by KarmaticEnding @ 2022-10-30 16:57:35
cin
包含在iostream
库里,你没引入这个库
by KarmaticEnding @ 2022-10-30 16:58:03
@22122817yss
by 22122817yss @ 2022-11-08 14:12:17
引入了还是不对,这里只是我打字打漏了而已