作者在 2020-03-12 11:16:00 发布以下内容
void 输出移位字符(char* a, int aa)
{//缘由https://bbs.bccn.net/viewthread.php?tid=499719&page=1&extra=#pid2721408
char i = 97, c = 0; int j = 0;// cin >> j;
while (a[j]!='\0')
{
c = a[j]-'\0';
c = (c + (aa %= 26)) % 123;
c += c < i ? i : 0;
cout << c << ends;
a[j++] = c;
}
}
char aa[111]{}; int a = 0; cin >> aa >> a;
输出移位字符(aa, a); cout << aa;