Previous Lecture | Lecture 2 | Next Lecture |
Lecture 2, Thu 06/27
Control Structures, I/O in programs
Code from lecture
https://github.com/ucsb-cs16-m19/code-from-class/tree/master/06-27
Topics
Learn multiple important topics using a game of fizzbuzz
- Just fizz (using cin to get input, C++ variables)
- The full game (nested and multiway if-else, boolean expressions)
- Create the usage: ./fizzbuzz
(passing command line arguments)
Simple flow control structures
- If else statements
- Nested and multi-way if-else
- Uninitialized variables in C++
- Evaluating C++ expressions