j****g 发帖数: 597 | 1 I'm not sure if it's a standard one or depends on compiler.
What header file should I include to use that? | t****t 发帖数: 6806 | 2 it's not MAX_INT
it's INT_MAX, in
but this is for C anyway.
for C++, you should use
#include
int int_max=std::numerical_limits::max();
Yes it's long, but you can use for any built-in type, thus you can use it in
template.
【在 j****g 的大作中提到】 : I'm not sure if it's a standard one or depends on compiler. : What header file should I include to use that?
| j****g 发帖数: 597 | |
|