how to set max value for variable in c++ code example
Example: how to set an integer equal to the largest integer possible in c++
// largest int in c++
signed int iMax = (unsigned int)~0 >> 1;
// largest unsigned int
unsigned int uMax = (unsigned int)~0;