7.8 Debugging Strategies
Hand tracing.
Insert cout statements to check values of variables while the program is running.
DevC++ debugger (built-in, not very friendly).