Run ID:2581
提交时间:2024-01-13 18:07:09
# include<iostream> using namespace std; int main(){ char ch; 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; }