Previous Lecture | lect02 Slides | Next Lecture |
Code from lecture
https://github.com/ucsb-cs16-s19-nichols/code-from-class/tree/master/04-04
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