C/C++, 字符库函数

头文件#include <ctype.h> 、#include <cctype>

1. bool  isalnum(char  c)

判断一个字符是否为字母或数字

2. bool isalpha(char c)

判断一个字符是否为字母
3.  bool isdigit( char c)
判断字符是否为数字
4.  bool iscntrl(char c)
判断字符是否为控制符
5.bool islower(char c);
判断字符是否为小写字母
6. bool isupper(char c)
判断字符是否为大写字母
7. bool isascii(char c)
判断字符是否为ASCII码
8. bool isgraph(char c);
判断字符c是否为除空格外的可打印字符
9.bool isspace( char c)
判断是否为空白符
10. bool isprint(char c);
判断字符c是否为可打印字符(含空格)
11.bool ispunct(int c)
判断字符是否为标点符号
12.char toacsii(int c)
转为ASCII
13. char toupper(char c)
转为大写英语字母
14. char tolower
转为小写英语字母




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值