酷代码 AI
菜单
服务商
DeepSeek字节豆包讯飞星火
更多选项

C++实现儿童身份识别码判断程序

```cpp #include <iostream> #include <string> int main() { std::string id; std::cin >> id; bool isChild = true; // 遍历字符串中的每个字符 for (char c : id) { // 判断字符是否为小写字母 if (!std::islower(c)) { isChild = false; break; } } if (isChild) { std::cout << "yes" << std::endl; } else { std::cout << "no" << std::endl; } return 0; } ``` ######[AI问答 | 165点数解答 | 2026-05-09 20:35:35]

相关提问
本站限时免费提问中
实用工具查看更多
Linux在线手册 [开发类]
Jquery在线手册 [开发类]
今日油价 [生活类]
图片互转base64 [开发类]
时间转换器 [开发类]