c++ 内置宏
来源:互联网 发布:淘宝店铺优惠券 编辑:程序博客网 时间:2024/05/14 21:38
内置类型的最大值宏定义
本文地址: http://blog.csdn.NET/caroline_wendy/article/details/24311895
C++中, 经常会使用, 某些类型的最大值, 如int的最大整数(INT_MAX), C的函数中, 包含了这些宏定义.
头文件: #include <climits>
具体参见:
char
object (byte)8
or greater*SCHAR_MINMinimum value for an object of type signed char
-127
(-27+1
) or less*SCHAR_MAXMaximum value for an object of type signed char
127
(27-1
) or greater*UCHAR_MAXMaximum value for an object of type unsigned char
255
(28-1
) or greater*CHAR_MINMinimum value for an object of type char
either SCHAR_MIN or 0
CHAR_MAXMaximum value for an object of type char
either SCHAR_MAX or UCHAR_MAXMB_LEN_MAXMaximum number of bytes in a multibyte character, for any locale1
or greater*SHRT_MINMinimum value for an object of type short int
-32767
(-215+1
) or less*SHRT_MAXMaximum value for an object of type short int
32767
(215-1
) or greater*USHRT_MAXMaximum value for an object of type unsigned short int
65535
(216-1
) or greater*INT_MINMinimum value for an object of type int
-32767
(-215+1
) or less*INT_MAXMaximum value for an object of type int
32767
(215-1
) or greater*UINT_MAXMaximum value for an object of type unsigned int
65535
(216-1
) or greater*LONG_MINMinimum value for an object of type long int
-2147483647
(-231+1
) or less*LONG_MAXMaximum value for an object of type long int
2147483647
(231-1
) or greater*ULONG_MAXMaximum value for an object of type unsigned long int
4294967295
(232-1
) or greater*LLONG_MINMinimum value for an object of type long long int
-9223372036854775807
(-263+1
) or less*LLONG_MAXMaximum value for an object of type long long int
9223372036854775807
(263-1
) or greater*ULLONG_MAXMaximum value for an object of type unsigned long long int
18446744073709551615
(264-1
) or greater* 0 0
- C/C++ 内置宏
- C语言内置宏
- c/c++内置宏定义说明
- C语言内置宏的使用
- C++(二)内置类型
- [C#]VisualStudio2015内置LocalDB
- c 内置函数
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏,__FILE__,__LINE__,## 用法
- C语言宏定义,内置宏的用法
- C语言宏定义,内置宏的用法
- C/C++中的内置宏定义 以及 CRT
- C语言常用内置函数
- 随心记
- C++:多态性(虚函数)
- 对于layer_v1.9 ~ v3.0之间弹出层标题不居中和按钮设置居中无效的解决方案
- dts文件和dtsi文件
- ubuntu安装 mpich
- c++ 内置宏
- JavaWeb数据库开发知识总结(xml)
- 交易日
- Greenplum 扩容遇到问题后的心得体会
- linux命令
- EF CodeFirst模式下,模型和业务逻辑处在不同项目的自动数据迁移实现
- bzoj1977 [BeiJing2010组队]次小生成树 Tree
- HTML5缓存技术
- 两种方法求n!,递归和非递归调用