This statement in main() "while (!(OldLevel == NewLevel)){" is never satisfied in Release mode but is in debug mode.
The statement is line number 98 in main.cpp
Both [OldLevel] and [NewLevel] are float types and are computed through division.
They are set to be not equal for the first iteration but are expected to be equal after that.
In Debug mode of compile, the operation works as expected.
In Release mode of compile, the operation never completes.
I used cout to see the two values and they are identical.
I am using Code Blocks version 17.12 with c++11 standard enabled.
My machine is Intel I7 with Windows 7 Professional OS.
This statement in main() "while (!(OldLevel == NewLevel)){" is never satisfied in Release mode but is in debug mode. The statement is line number 98 in main.cpp
Both [OldLevel] and [NewLevel] are float types and are computed through division. They are set to be not equal for the first iteration but are expected to be equal after that.
In Debug mode of compile, the operation works as expected. In Release mode of compile, the operation never completes.
I used cout to see the two values and they are identical.
I am using Code Blocks version 17.12 with c++11 standard enabled. My machine is Intel I7 with Windows 7 Professional OS.
Thank you for any suggestions you provide.