输出why是数字

P1914 小书童——凯撒密码

陈星航 @ 2017-06-04 15:04:37

输出why是数字?!!!!


by 吾晨旭 @ 2017-06-04 15:13:08

怎么可能?截图


by 固执 @ 2017-06-15 17:57:18

转换


by zhousirui070502 @ 2017-06-26 13:46:51

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    string s;
    int n,i,j;
    cin>>n;
    cin>>s;
    for(i=0;i<s.size();++i)
    {
        for(j=1;j<=n;++j)
        {
            ++s[i];
            if(s[i]>'z')
            s[i]='a';
        }
    }
    cout<<s;
    return 0;
}

|