C++学习笔记(一)——cctype函数库整理

函数名称 返回值
isalnum( ) 若参数为字母或数字,函数返回true
isalpha( ) 若参数为字母,函数返回true
iscntrl( ) 若参数为控制字符,函数返回true
isdigit( ) 若参数为数字,函数返回true
isgraph( ) 若参数为除空格外字符,函数返回true
islower( ) 若参数为小写字母,函数返回true
isprint( ) 若参数为打印字符,函数返回true
ispunct( ) 若参数为标点符号,函数返回true
isspace( ) 如参数为空白字符,函数返回true
isupper( ) 若参数为大写字母,函数返回true
isxdigit( ) 若参数为16进制数字,则函数返回true
tolower( ) 若参数为大写字符,则返回其小写值,否则返回该参数
toupper( ) 若参数为小写字符,则返回其大写值,否则返回该参数
发布了17 篇原创文章 · 获赞 10 · 访问量 413

猜你喜欢

转载自blog.csdn.net/acslsr/article/details/104042207