Run ID:131326
提交时间:2025-09-22 17:58:42
Online Judge C++题库系统 OJ 首页 问题列表 状态 排行榜 黄芃硕 首页 问题 字符的前导值和后继值 答案 梁敖铭 • 1年前 #include<iostream> using namespace std; int main(){ char a; a=cin.get(); if((a-1)>=32&&(a-1)<=126) cout<<a-1<<endl; else cout<<"Input Error!"<<endl; if((a+1)>=32&&(a+1)<=126) cout<<a+1<<endl; else cout<<"Input Error!"<<endl; return 0; }