Run ID:134063
提交时间:2025-10-25 15:56:45
#include<bits/stdc++.h> using namespace std; int main(){ char c; //cin>>c; //c = getchar(); //可以接受空格 c = cin.get(); //可以接受空格 if(c<=32){ cout<<"Input Error!"<<endl; } else if(c>32 && c<126){ cout<<c-1<<endl; } if(c>=126){ cout<<"Input Error!"<<endl; } else if(c>32 && c<126){ cout<<c+1<<endl; } return 0; }