Run ID:109230

提交时间:2025-02-07 09:36:32

#include<bits/stdc++.h> using namespace std; int main(){ char ch; cin.get(ch); if((ch-1)>=32 and (ch-1)<=126){ cout<<ch-1<<endl; } else{ cout<<"Input Error!"<<endl; } if((ch+1)>=32 and (ch+1)<=126){ cout<<ch+1; } else{ cout<<"Input Error!"<<endl; } }