Run ID:61202

提交时间:2023-12-02 17:32:40

#include<iostream> using namespace std; int main(){ char n,a=0,b=0; cin.get(n); a = n-1; b = n+1; if(a>=32&&a<=126){ cout<<a<<endl; } else{ cout<<"Input Error!\n"<<endl; } if(b>=32&&b<=126){ cout<<b<<endl; } else{ cout<<"Input Error!\n"<<endl; } return 0; }