cctype 定义的函数 (记忆)

来源:互联网 发布:外呼软件 编辑:程序博客网 时间:2024/04/29 23:55
isalnum(c)//如果c是字母或数字,则为trueisalpha(c)//如果c是字母,则为trueiscntrl(c)//如果c是控制字符,则为trueisdigit(c)//如果c是数字,则为trueisgraph(c)//如果c不是空格,但可以打印 则为trueislower(c)//如果c是小写字母则为trueisprint(c)//如果c是可打印的字母则为trueispunct(c)//如果c是标点符号则为trueisspace(c)//如果c是空白字符则为trueisupper(c)//如果c是大写字母则为trueisxdigit(c)//如果c是十六进制则为truetolower(c)//如果c是大写字母,则返回其小写字母形式,否则返回ctoupper(c)//如果c是小写字母,则返回其大写字母形式,否则返回c

原创粉丝点击