DEV Community

Discussion on: A Star (A*) Path Finding C++

Collapse
 
jansonsa profile image
Andris Jansons

FLT_MAX stands for maximum floating point value. Since we want to initialize every node with a cost of infinity, FLT_MAX is the closest we can get to infinity.

Collapse
 
ayanasser profile image
aya nasser • Edited

But it's undefined here in your code ,, where i should define it ?
and could u send me your email , because i have some question for a small university project

Thread Thread
 
karabas2903 profile image
karabas2903 • Edited

you can include cfloat lib