Run ID:88265
提交时间:2024-08-19 10:12:51
#include<bits/stdc++.h> using namespace std; int main(){ char c; //cin >>c; // cin无法输入空格 scanf("%c", &c);// 可以输入空格, if(c-1 >= 32 && c-1 <= 126){ cout << c-1 <<endl; } else{ cout << "Input Error!" <<endl; } if(c+1 >= 32 && c+1 <= 126){ cout << c+1 <<endl; } else{ cout << "Input Error!" <<endl; } return 0; }