#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<climits>
using namespace std;
int main()
{
cout<<CHAR_MAX<<endl;//char的最大值
cout<<CHAR_MIN<<endl;//char的最小值
cout<<SCHAR_MAX<<endl;//signed char 最大值
cout<<SCHAR_MIN<<endl;//signed char 最小值
cout<<UCHAR_MAX<<endl;//unsigned char 最大值
cout<<SHRT_MAX<<endl;//short 最大值
cout<<SHRT_MIN<<endl;// short 最小值
cout<<USHRT_MAX<<endl;//unsigned short 最大值
cout<<INT_MAX<<endl;//int 最大值
cout<<INT_MIN<<endl;//int 最小值
cout<<UINT_MAX<<endl;//unsigned int 最大值
cout<<LONG_MAX<<endl;//long最大值
cout<<LONG_MIN<<endl;//long最小值
cout<<ULONG_MAX<<endl;//unsigned long 最大值
cout<<LLONG_MAX<<endl;//long long最大值
cout<<LLONG_MIN<<endl;//long long最小值
cout<<ULLONG_MAX<<endl;//unsigned long long最大值
return 0;
}
头文件<climits>常用数值
最新推荐文章于 2024-08-18 13:47:21 发布