weilincan12306 @ 2019-09-29 10:44:39
int main() { char a[50]; int n,i,b; scanf("%d",&n); getchar(); gets(a); b=strlen(a); for(i=0;i<b;i++) { if(a[i]>122-n&&a[i]<=122) { a[i]=a[i]-26+n; continue; } a[i]=a[i]+n; } printf(“%s\n”,a); return 0; }
by jxyzs @ 2019-09-29 10:47:17
希望更丰富的展现?使用Markdown
by jxyzs @ 2019-09-29 10:59:16
别用gets试试