// numeric_limits_max.cpp
#include <iostream>#include <limits>
using namespace std;
int main() {cout << "The maximum value for type float is: "<< numeric_limits<float>::max( )<< endl;cout << "The maximum value for type double is: "<< numeric_limits<double>::max( )<< endl;cout << "The maximum value for type int is: "<< numeric_limits<int>::max( )<< endl;cout << "The maximum value for type short int is: "<< numeric_limits<short int>::max( )<< endl;}
drunk ========= Drinking age is 21AK ============ AK 47A ============= 4 (A and 4 look the same)horny ========= internet rule 34 (if it exists, there's 18+ material of it)
21 47 4(years) 3(years) 4(years)21 47 48 36 48
public static int GetIntMaxValueGenius1(){int n = 0;while (++n > 0) { }return --n;}
public static int GetIntMaxValueGenius2(){int n = 0;try{while (true)n = checked(n + 1);}catch { }return n;}