CS1302: 2026-01-22
DEBUGGING PRACTICE
Usual Preparation
- Open Qunicy (with code if you have some)
- Open rustpad.io/#CS1302
- And I'll attempt to get the Google Meet started before you call me!
Books on the Way:
Two more copies of Freidman and Koffmann, though they could take a week or so.
One copy of the reference C++ Primer (5th edition) by Lippman et al. (The copy behind me is the 4th edition.)
Show Me Some Work You've Done: Graphical Orbit Simulation
- Review your code.
- Calculating the position of a planet in Cartesian coordinates (i.e., "world" coordinates)
- Converting world coordinates to pixel coordinates
- The animation loop
- Adding double buffering
- How are you doing with finding and fixing compile-time errors?
- How are you doing with finding and fixing run-time errors?
Practice: Debugging Your Orbit Project