其他分享
首页 > 其他分享> > error: 'INT_MAX' was not declared in this scope

error: 'INT_MAX' was not declared in this scope

作者:互联网

使用C++的整型上下限时报错:

error: ‘INT_MAX’ was not declared in this scope

解决办法:

常量INT_MAX和INT_MIN定义在头文件limits中
所以添加头文件·#include<climits>

标签:declared,头文件,INT,MAX,error,scope
来源: https://www.cnblogs.com/aoke2002/p/15270530.html