OK
2025-02-05 14:49:30
发布于:浙江
4阅读
0回复
0点赞
using namespace std;
int main() {
char ch;
cin >> ch;
if (islower(ch)) {
cout << "a" << endl;
} else if (isupper(ch)) {
cout << "A" << endl;
} else if (isdigit(ch)) {
cout << "0" << endl;
} else {
cout << "other" << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个