一道c++编程题?

如题

测试结果

你好,这是一道语言基础题。下面是std标程,希望你理解一下。

#include<bits/stdc++.h>

using namespace std;

int main()

{

    char c;

    cin>>c;

    for(int i=-2;i<=2;i++)

    {

        printf("%c",c+i);

    }

    cout<<endl;

    return 0;

}

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答