cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to represent infinity?
How to represent infinity?
Apr 20, 2011 at 10:42am UTC
akilguo
(43)
Here i want to test the Prim algorithm with Adjacent Matrix, but i don't know how to represent infinity with c++ ,is there a header with #define directive? Please help me. Thanks!
Apr 20, 2011 at 11:49am UTC
Bazzy
(6281)
numeric_limits<
double
>
/*or float*/
::infinity()
http://www.cplusplus.com/reference/std/limits/numeric_limits/
Topic archived. No new replies allowed.