Class 3: Looping
What good is a guessing game that only lets you guess once? How can we have our programs repeatedly execute some code based on a decision? In this class, we'll explore one of the most important aspects of computer programming: loops. In particular, we'll discuss the details of the various looping constructs in C++ and how it can take our guessing game to the next level!
Topics to discuss:
Loop conditions and Body Statements
While, Do...While, and For looping constructs
The Curse of the Infinite Loop
The "Are we there yet?!" Program
The String Library basics
A Looped Guessing Game
Random Number Generation in C++
The Random Guessing Game
Topics to discuss:
Loop conditions and Body Statements
While, Do...While, and For looping constructs
The Curse of the Infinite Loop
The "Are we there yet?!" Program
The String Library basics
A Looped Guessing Game
Random Number Generation in C++
The Random Guessing Game