Previous Lecture | lect02 Before Slides | lect02 Annotated Slides | Next Lecture |
Code from lecture
https://github.com/ucsb-cs16-sp17/lectures/tree/master/0405
Topics
Simple flow control structures- For and while loops
- If else statements are DIFFERENT in C++ than in Python. We’ll discuss.
- Nested and multi-way if-else
- Practice with a game of Fizzbuzz (using multiway if-else within loops)
C++ variables and datatypes (contd)
- Scope and lifetime of variables
- Uninitialized variables in C++
- We will look at three specific datatypes: char, int and string
- Evaluating C++ expressions
- lvalue and rvalue
- Boolean expressions