Run ID:61193

提交时间:2023-12-02 17:26:50

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