Run ID:2574

提交时间:2024-01-13 18:01:44

# include<iostream> using namespace std; int main(){ char ch; int q,h; cin>>ch; if(int(ch)-1<32||int(ch)-1>126){ cout<<"Input Error"<<endl; } else { cout<<int(ch)-1<<endl; } if(int(ch)+1<32||int(ch)+1>126){ cout<<"Input Error"<<endl; } else { cout<<int(ch)+1<<endl; } return 0; }