cpp infinity code example
Example 1: infinity c++
#include <limits>
// ...
int a = std::numeric_limits<int>::max();
Example 2: infinity C++
#include <limits>
// ...
int a = std::numeric_limits<int>::infinity();
#include <limits>
// ...
int a = std::numeric_limits<int>::max();
#include <limits>
// ...
int a = std::numeric_limits<int>::infinity();