Run ID:77807
提交时间:2024-06-15 14:16:01
#include<iostream> using namespace std; int main(){ char b; int a,c; cin.get(b); a=b-1; c=b+1; if(a>=32&&a<=126){ cout<<a; } else{ cout<<"Input Error!"; } cout<<endl; if(c>=32&&c<=126){ cout<<c; } else{ cout<<"Input Error!"; } return 0; }