首页 > 其他 > 详细

error: 'INT_MAX' was not declared in this scope

时间:2021-09-15 18:34:24      阅读:22      评论:0      收藏:0      [点我收藏+]
使用C++的整型上下限时报错:

error: ‘INT_MAX’ was not declared in this scope

解决办法:

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

error: 'INT_MAX' was not declared in this scope

原文:https://www.cnblogs.com/aoke2002/p/15270530.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!