Answers for "how to set value of this in c++"

C++
0

c++ set value to inf

#include <limits>

int a = std::numeric_limits<int>::infinity();
float a = std::numeric_limits<float>::infinity();
double a = std::numeric_limits<double>::infinity();
...
Posted by: Guest on September-08-2021

Code answers related to "how to set value of this in c++"

Browse Popular Code Answers by Language