会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
maguyusi
博客园
首页
新随笔
联系
订阅
管理
2023年4月23日
C++ 如何一次性获取用户输入并判断是否为数字?
摘要: #include "stdafx.h" #include <iostream> using namespace std; bool isNumber(char *str) { char *p = str; if (*p == '0' && *(p+1) != '\0') //防止输入第一个为0后面跟
阅读全文
posted @ 2023-04-23 21:15 Maguyusi
阅读(42)
评论(0)
推荐(0)
公告