cctype
来源:互联网 发布:电脑人工智能软件 编辑:程序博客网 时间:2024/04/30 05:58
#include<iostream>#include<cctype>using namespace std;int main(void){char ch;//cin >> ch;cin.get(ch);if (isspace(ch)){cout << '\a';}//cout << S << endl;system("pause");}函数名称 返回值
isalnum() 如果参数是字母数字,即字母或数字,该函数返回true
isalpha() 如果参数是字母,该函数返回真
isblank() 如果参数是空格或水平制表符,该函数返回true
iscntrl() 如果参数是控制字符,该函数返回true
isdigit() 如果参数是数字(0~9),该函数返回true
isgraph() 如果参数是除空格之外的打印字符,该函数返回true
islower() 如果参数是小写字母,该函数返回true
isprint() 如果参数是打印字符(包括空格),该函数返回true
ispunct() 如果参数是标点符号,该函数返回true
isspace()如果参数是标准空白字符,如空格、进纸、换行符、回车、水平制表符或者垂直制表符,该函数返回true
isupper() 如果参数是大写字母,该函数返回true
isxdigit() 如果参数是十六进制的数字,即0~9、a~f、A~F,该函数返回true
tolower() 如果参数是大写字符,则返回其小写,否则返回该参数
toupper() 如果参数是小写字母,则返回其大写,否则返回该参数
常用:常用的有:
tolower()——toupper()
isupper()——islower()
isalnum()——isalpha()
既然都给你提供了,你不用,是不是傻?
0 0
- cctype
- cctype
- cctype
- cctype
- <cctype>
- cctype <ctype.h> <cctype>
- ctype->cctype
- #include <cctype>
- cctype函数
- cctype库函数
- cctype中的字符函数
- cctype字符函数
- C++ 字符函数库cctype
- c++字符处理 cctype
- isalnum <ctype.h> <cctype>
- isalpha <ctype.h> <cctype>
- iscntrl <ctype.h> <cctype>
- isdigit <ctype.h> <cctype>
- centos7.2 同时运行多个php-fpm主进程
- cocos2dx源码分析:shader的创建过程
- 类与类之间的关系
- AVL树详解
- linux nginx本机可以访问html,远程无法访问的解决办法
- cctype
- Linux 文件系统的目录结构
- Android使用GridView内容填充满不出现滚动的设计
- httpclient获取状态码(4.5.2版本)
- Hibernate中session的clear(),flush(),evict()方法详解
- 利用腾讯云学生套餐免费搭建wordpress博客
- ffmpeg的总体认识
- 计算文件夹大小
- 上传图片