使用C++的整型上下限时报错:
error: ‘INT_MAX’ was not declared in this scope
解决办法:
常量INT_MAX和INT_MIN定义在头文件limits中
所以添加头文件·#include<climits>
2023-12-29 18:15:16
error: ‘INT_MAX’ was not declared in this scope
常量INT_MAX和INT_MIN定义在头文件limits中
所以添加头文件·#include<climits>