Run ID:110520
提交时间:2025-02-22 11:15:39
#include<iostream> using namespace std; char c; int main(){ int q,h; c = cin.get(); q=c-1; h=c+1; if(q>=32 && q<=126){ cout<<q<<endl; } else{ cout<<"Input Error!"<<endl; } if(h>=32 && h<=126){ cout<<h<<endl; } else{ cout<<"Input Error!"<<endl; } return 0; }