<assert.h><complex.h><ctype.h><errno.h><fenv.h><float.h><inttypes.h><iso646.h><limits.h><locale.h><math.h><setjmp.h><signal.h><stdarg.h><stdbool.h><st ...
分类:
编程语言 时间:
2016-08-09 20:38:53
阅读次数:
237
LANGLC_*的默认值,是最低级别的设置,如果LC_*没有设置,则使用该值。类似于 LC_ALL。 LC_ALL它是一个宏,如果该值设置了,则该值会覆盖所有LC_*的设置值。注意,LANG的值不受该宏影响。 1. LC_COLLATE定义该环境的排序和比较规则2. LC_CTYPE用于字符分类和字 ...
分类:
其他好文 时间:
2016-08-06 15:47:42
阅读次数:
355
#include <cctype>的函数 c++中应该是#include <cctype> c中应该是#include <ctype.h> 以下为字符函数库中常用的函数: 函数名称 返回值 isalnum() 如果参数是字母数字,即字母或数字,该函数返回true isalpha() 如果参数是字母, ...
分类:
其他好文 时间:
2016-07-24 12:09:47
阅读次数:
160
命令简介1、查看本地字符集命令:locale
2、设置临时字符集:export
注:系统默认字符集:LANG指定系统默认的字符集合可以是zh,zh_CN.GB18030,zh_CN.UTF-8等.修改字符集1、使用locale查看当前字符集root@holystone2#locale
LANG=zh_CN.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TI..
分类:
其他好文 时间:
2016-07-19 14:04:38
阅读次数:
1713
库函数
#include "stdio.h"
#include "string.h"
#include "ctype.h"
#include "stdlib.h"
#include "io.h"
#include "math.h"
#include "time.h"#define OK 1
#define ERROR 0
#define TRUE 1
#define...
分类:
编程语言 时间:
2016-07-15 21:27:01
阅读次数:
263
在Python中可以方便地使用os模块运行其他的脚本或者程序,这样就可以在脚本中直接使用其他脚本,或者程序提供的功能,而不必再次编写实现该功能的代码。为了更好地控制运行的进程,可以使用win32process模块中的函数。如果想进一步控制进程,则可以使用ctype模块,直接调用kernel32.dl ...
分类:
编程语言 时间:
2016-07-15 13:03:44
阅读次数:
195
1. 头文件
#include "stdio.h"
#include "string.h"
#include "ctype.h"
#include "stdlib.h"
#include "io.h"
#include "math.h"
#include "time.h"
#define OK 1
#define ERROR 0
#define TRUE...
分类:
编程语言 时间:
2016-07-14 15:35:54
阅读次数:
242
原型:int toascii(int c)
相关函数 isascii,toupper,tolower
头文件:ctype.h
功能:将整型数转换成合法的ASCII 码字符
说明:
将参数c转换成7位的unsigned char值,第八位则会被清除,此字符即会被转成ASCII码字符。即把c最高位舍去, 转换成7bit的unsigned char 类型使它符合ASCII表。
返回值...
分类:
其他好文 时间:
2016-07-13 17:42:26
阅读次数:
168
C、传统 C++ #include <assert.h> 设定插入点 #include <ctype.h> 字符处理 #include <errno.h> 定义错误码 #include <float.h> 浮点数处理 #include <fstream.h> 文件输入/输出 #include <io ...
分类:
编程语言 时间:
2016-07-05 11:50:42
阅读次数:
195
C/C++头文件一览 C #include <assert.h> //设定插入点#include <ctype.h> //字符处理#include <errno.h> //定义错误码#include <float.h> //浮点数处理#include <iso646.h> //对应各种运算符的宏#i ...
分类:
编程语言 时间:
2016-07-04 20:36:22
阅读次数:
193