#include <limits> int a = std::numeric_limits<int>::infinity(); float a = std::numeric_limits<float>::infinity(); double a = std::numeric_limits<double>::infinity(); ...