Answers for "how to assign infinity in cpp"

C++
2

infinity c++

#include <limits>

// ...

int a = std::numeric_limits<int>::max();
Posted by: Guest on April-08-2021
0

how to set a variable to infinity in c++

#include <limits>

// ...

int a = std::numeric_limits<int>::max();
Posted by: Guest on July-29-2021

Code answers related to "how to assign infinity in cpp"

Browse Popular Code Answers by Language