c++ isdigit函数

函数名:isdigit

函数所需头文件:#include<cstdio>

函数格式:isdigit(字符)

函数作用:判断括号内是否为1~9的数字。

例:isdigit(4) 就是true

isdigit(a) 就是false

posted @ 2018-02-09 18:21  Mr^Simon  阅读(846)  评论(0编辑  收藏  举报