include 快速使用

#include<climits>
{spa

CHAR_BIT it

/* Maximum length of a multibyte character. */
MB_LEN_MAX 1stream

/* Minimum and maximum values a `signed char' can hold. */
SCHAR_MIN
SCHAR_MAX cli

/* Maximum value an `unsigned char' can hold. (Minimum is 0). */
UCHAR_MAXim

/* Minimum and maximum values a `char' can hold. */
CHAR_MINco

/* Minimum and maximum values a `signed short int' can hold. */
SHRT_MIN
SHRT_MAX

/* Maximum value an `unsigned short int' can hold. (Minimum is 0). */
USHRT_MAX

/* Minimum and maximum values a `signed int' can hold. */
INT_MIN
INT_MAX

/* Maximum value an `unsigned int' can hold. (Minimum is 0). */
UINT_MAX

/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
LONG_MIN
LONG_MAX

/* Maximum value an `unsigned long int' can hold. (Minimum is 0). */
ULONG_MAX

/* Minimum and maximum values a `signed long long int' can hold. */
LLONG_MIN
LLONG_MAX

/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
ULLONG_MAX

/* Minimum and maximum values a `signed long long int' can hold. */
LONG_LONG_MIN
LONG_LONG_MAX

/* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
ULONG_LONG_MAX
}

 

 

eg:

stream>
using namespace std;

int main() { cout << INT_MIN << endl;}

相關文章
相關標籤/搜索