很简单(附注释))
2025-12-22 18:52:01
发布于:河南
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
//定义变量并输入
char n;
cin>>n;
if(n>='a') cout<<'a';//判断是否为小写字母
else if(n>='A') cout<<'A';//判断是否为大写字母
else if(n>='0'&&n<='9') cout<<0;//判断是否为数字
else cout<<"other";//否则为其他字符
return 0;
}
这里空空如也


有帮助,赞一个