cctype 常用字符处理函数

isalnum():字母或数字返回1
isalpha():字母返回1
isdigit():数字返回1
ispunct():标点符号返回1(可打印字符中除了字母数字的部分)
isspace():标准空白字符返回1,比如’ ‘, ‘\t’, ‘\r’, ‘\n’, ‘\v, ‘f’
isprint():打印字符返回1
isgraph():除空格外的打印字符返回
isxdigit():十六进制返回1,比如0-9, a~f, A~F
islower():小写字母返回1
isupper():大写字母返回1

文档链接:
http://www.cplusplus.com/reference/cctype/isdigit/

猜你喜欢

转载自blog.csdn.net/cfarmerreally/article/details/78292592