Sams Teach Yourself C++ in 21 Days

(singke) #1

DAY 4


WEEK 1

Creating Expressions


and Statements


At its heart, a program is a set of commands executed in sequence. The power
in a program comes from its capability to execute one or another set of com-
mands, based on whether a particular condition is true or false.
Today, you will learn


  • What statements are

  • What blocks are

  • What expressions are

  • How to branch your code based on conditions

  • What truth is, and how to act on it

Free download pdf