This is a discussion on Need Help With Basic Program (computing grades) within the C++ Programming forums, part of the General Programming Boards category; RMS's gdb Tutorial: How do I use watchpoints?...
Special thanks to anyone who actually helped the kickstarter.
Possibly not worth the effort now, but using a graphical IDE with a built-in debugger can be more convenient. It can readily display what variables are in scope and their values, and allow you to easily compare the result of multiple watch expressions for consistency.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.