Run ID:110522

提交时间:2025-02-22 11:16:14

#include<iostream> using namespace std; char c; int main(){ int qian,hou; //cin>>c; //不能接受空格 c=cin.get(); qian=c-1; hou=c+1; if(qian>=32 && hou<=126){ cout<<qian<<endl; } else{ cout<<"Input Error!"<<endl; } if(hou>=32 && hou<=126){ cout<<hou<<endl; } else{ cout<<"Input Error!"; } return 0; }