#include <iostream>
#include <float.h>
using namespace std;
int main()
{
std::cout << "int max: \t" << INT_MAX << std::endl;
std::cout << "int min: \t" << INT_MIN << std::endl;
std::cout << "long max: \t" << LONG_MAX << std::endl;
std::cout << "long min: \t" << LONG_MIN << std::endl;
std::cout << "float max: \t" << FLT_MAX << std::endl;
std::cout << "float min: \t" << FLT_MIN << std::endl;
std::cout << "double max: \t" << DBL_MAX << std::endl;
std::cout << "double min: \t" << DBL_MIN << std::endl;
system("pause");
return 0;
}
默认数据类型的最大最小值
最新推荐文章于 2021-03-06 22:10:46 发布