Hello, I am new here :)
I am teaching myself A Star algorithm and I have found this code in a book I'm reading about AI but the book doesn't show an example use and I am having trouble using the code. :(
Here is the class and the implementation files, I uploaded them on textuploader due to max text limit: http://textuploader.com/drtih
Any example use would be very helpful to me, thank you.
Here is my attempt (doesn't work but I might've gotten close):
Also, try to use the debugger in your IDE, it will save you days of staring at code. Create a watch list of variables, a break point before where you think there might be a problem step through the code 1 line at a time, deduce where things go wrong.
Here you go guys http://coliru.stacked-crooked.com/a/4bccef86ab29114e I'm pretty sure that's all the author included in the book, they just didn't demonstrate how to use the code because writing an int main() function is too much work apparently :p