4个回答
展开全部
头文件的库函数。我给你一个路径。==
D:\Microsoft Visual Studio\VC98\Include
你就是找这个include文件下就可以了。
limits.h
MSDN
中的解释。
The limits for integer types are listed in the following table. These limits are also defined in the standard header file LIMITS.H.
Limits on Integer Constants
Constant Meaning Value
CHAR_BIT Number of bits in the smallest variable that is not a bit field. 8
SCHAR_MIN Minimum value for a variable of type signed char. –128
SCHAR_MAX Maximum value for a variable of type signed char. 127
UCHAR_MAX Maximum value for a variable of type unsigned char. 255 (0xff)
CHAR_MIN Minimum value for a variable of type char. –128; 0 if /J option used
CHAR_MAX Maximum value for a variable of type char. 127; 255 if /J option used
MB_LEN_MAX Maximum number of bytes in a multicharacter constant. 2
SHRT_MIN Minimum value for a variable of type short. –32768
SHRT_MAX Maximum value for a variable of type short. 32767
USHRT_MAX Maximum value for a variable of type unsigned short. 65535 (0xffff)
INT_MIN Minimum value for a variable of type int. –2147483647 – 1
INT_MAX Maximum value for a variable of type int. 2147483647
UINT_MAX Maximum value for a variable of type unsigned int. 4294967295 (0xffffffff)
LONG_MIN Minimum value for a variable of type long. –2147483647 – 1
LONG_MAX Maximum value for a variable of type long. 2147483647
ULONG_MAX Maximum value for a variable of type unsigned long. 4294967295 (0xffffffff)
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
END Microsoft Specific
D:\Microsoft Visual Studio\VC98\Include
你就是找这个include文件下就可以了。
limits.h
MSDN
中的解释。
The limits for integer types are listed in the following table. These limits are also defined in the standard header file LIMITS.H.
Limits on Integer Constants
Constant Meaning Value
CHAR_BIT Number of bits in the smallest variable that is not a bit field. 8
SCHAR_MIN Minimum value for a variable of type signed char. –128
SCHAR_MAX Maximum value for a variable of type signed char. 127
UCHAR_MAX Maximum value for a variable of type unsigned char. 255 (0xff)
CHAR_MIN Minimum value for a variable of type char. –128; 0 if /J option used
CHAR_MAX Maximum value for a variable of type char. 127; 255 if /J option used
MB_LEN_MAX Maximum number of bytes in a multicharacter constant. 2
SHRT_MIN Minimum value for a variable of type short. –32768
SHRT_MAX Maximum value for a variable of type short. 32767
USHRT_MAX Maximum value for a variable of type unsigned short. 65535 (0xffff)
INT_MIN Minimum value for a variable of type int. –2147483647 – 1
INT_MAX Maximum value for a variable of type int. 2147483647
UINT_MAX Maximum value for a variable of type unsigned int. 4294967295 (0xffffffff)
LONG_MIN Minimum value for a variable of type long. –2147483647 – 1
LONG_MAX Maximum value for a variable of type long. 2147483647
ULONG_MAX Maximum value for a variable of type unsigned long. 4294967295 (0xffffffff)
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
END Microsoft Specific
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
C 的 limits.h声明了整型的极限常量.
希望采纳,谢谢!
希望采纳,谢谢!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
安装路径里的include下
/* limits.h
Defines implementation specific limits on type values.
Copyright (c) 1987, 1991 by Borland International
All Rights Reserved.
*/
#ifndef __LIMITS_H
#define __LIMITS_H
#if !defined( __DEFS_H )
#include <_defs.h>
#endif
#define CHAR_BIT 8
#if ('\x80' < 0)
#define CHAR_MAX 127
#define CHAR_MIN (-128)
#else
#define CHAR_MAX 255
#define CHAR_MIN 0
#endif
#define SCHAR_MAX 127
#define SCHAR_MIN (-128)
#define UCHAR_MAX 255
#define SHRT_MAX 0x7FFF
#define SHRT_MIN ((int)0x8000)
#define USHRT_MAX 0xFFFFU
#define INT_MAX 0x7FFF
#define INT_MIN ((int)0x8000)
#define UINT_MAX 0xFFFFU
#define LONG_MAX 0x7FFFFFFFL
#define LONG_MIN ((long)0x80000000L)
#define ULONG_MAX 0xFFFFFFFFUL
#define MB_LEN_MAX 1
#endif
/* limits.h
Defines implementation specific limits on type values.
Copyright (c) 1987, 1991 by Borland International
All Rights Reserved.
*/
#ifndef __LIMITS_H
#define __LIMITS_H
#if !defined( __DEFS_H )
#include <_defs.h>
#endif
#define CHAR_BIT 8
#if ('\x80' < 0)
#define CHAR_MAX 127
#define CHAR_MIN (-128)
#else
#define CHAR_MAX 255
#define CHAR_MIN 0
#endif
#define SCHAR_MAX 127
#define SCHAR_MIN (-128)
#define UCHAR_MAX 255
#define SHRT_MAX 0x7FFF
#define SHRT_MIN ((int)0x8000)
#define USHRT_MAX 0xFFFFU
#define INT_MAX 0x7FFF
#define INT_MIN ((int)0x8000)
#define UINT_MAX 0xFFFFU
#define LONG_MAX 0x7FFFFFFFL
#define LONG_MIN ((long)0x80000000L)
#define ULONG_MAX 0xFFFFFFFFUL
#define MB_LEN_MAX 1
#endif
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
google or baidu
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询