INT_MAX was not declared in this scope/could not be resolved [message #1758044] |
Wed, 22 March 2017 19:35  |
Eclipse User |
|
|
|
Hi. I am new to C++ and I am going through the Cave of Programming at udemy.com. The lesson is Integer Types.
The code is as follows:
//===================================================================
// Name : Integer.cpp
//===================================================================
#include <iostream>
#include <limits>
using namespace std;
int main() {
int value = 54656;
cout << value << endl;
cout << INT_MAX << endl;
return 0;
}
I get an error at cout << INT_MAX << endl; that says "Symbol INT_MAX could not be resolved. The author of the tutorial mentions that some compilers may have an issue with <limits> and even suggested <limits.h> but either gives the same error.
Help!
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24127 seconds