c++字符处理 cctype

 

c++字符处理 cctype

cctype头文件中定义的函数: isalnum(c) 如果c是字母或数字,则为true isalpah(c) 如果c是字母,则为true iscntrl(c) 如果c是控制字符,则为true isdigit(c) 如果c是数字,则为true isgraph(c) 如果c不是空格,则为true islower(c) 如果c是小写字母,则为tru

cctype头文件中定义的函数:
isalnum(c) 如果c是字母或数字,则为true
isalpha(c) 如果c是字母,则为true
iscntrl(c) 如果c是控制字符,则为true
isdigit(c) 如果c是数字,则为true
isgraph(c) 如果c不是空格,则为true
islower(c) 如果c是小写字母,则为true
isprint(c) 如果c是可打印的字符,则为true
ispunct(c) 如果c是标点符号,则为true
isspace(c) 如果c是空白字符,则为true
isupper(c) 如果c是大些字母,则为true
isxdigit(c) 如果c是十六进制数,则为true
tolower(c) 如果c是大写字母,则返回小写字母形式,否则返回c。
toupper(c) 如果c是小写字母,则返回大些字母形式,否则返回c。

 

你可能感兴趣的:(c++字符处理 cctype)