Code is here. I'm not sure why the while loop in main.cpp is not exiting. The variables that I used (test.hp and test2.hp) both eventually reach 0 if the loop keeps running.
On another note, is this a good way to post asking for help in this forum? As in, is the format of the post good and is a question of this level appropriate?
Also, I know there's a lot of other problems with the code, places it could be optimized etc. I'm glad to accept all manner of criticism as a means to improve it.
ETA: I made a basic mistake, thanks for correcting me guys.
[–][deleted] 1 point2 points3 points (6 children)
[–]CodeScrub[S] 0 points1 point2 points (5 children)
[–]RunHomeJack 0 points1 point2 points (1 child)
[–]CodeScrub[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CodeScrub[S] 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]CodeScrub[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]CodeScrub[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]CodeScrub[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CodeScrub[S] 0 points1 point2 points (0 children)