Sorry I looked in the FAQ, tutorials, and did a search but I don't know how to use
<climits> to determine the max and min an integer can be. Please help!
Sorry I looked in the FAQ, tutorials, and did a search but I don't know how to use
<climits> to determine the max and min an integer can be. Please help!
Code:cout << "max: " << INT_MAX << "\tmin: "<< INT_MIN << endl;
Or in <limits>:Code:#include <limits> ... std::numeric_limits<int>::max();
thanks Thantos and DaveD
Yeah I thought about numeric_limits but figured since he said climits I'd limit to that