C++ Statements We've Encountered

So far, we've seen several kinds of statements:

Each of these statements can be used anywhere a <statement> is allowed. When you see the template for the general form of a statement, it usually indicates where statements are allowed. Here is the general form of the if . . . else statement:

if (<boolean condition>)
  <statement>
else
  <statement>
Next page

Back to Lesson 10 Index
Back to Outline