Image

Imageemelya_lya wrote in Imageru_cpp

Спасите чайника

А как в C++ можно дать переменной значение "плюс бесконечность"?


P.S. The problem was solved, thanx to everyone!
The solution was:

#include
[Error: Irreparable invalid markup ('<limits.h>') in entry. Owner must fix manually. Raw contents below.]

А как в C++ можно дать переменной значение "плюс бесконечность"?


P.S. The problem was solved, thanx to everyone!
The solution was:

#include
<limits.h>

int inf = LONG_MAX;


I'll be happy to know if you don't think the solution is appropriate :-)