C++ statements are typically terminated by a semicolon. A sequence of statements may, however, be enclosed in {} and treated as a single compound statement.
C++ has a small number of statement types:
x + y;
f(x); // call a function f, passing a value x
z = x + y;
if statements: Select one of two choices based
on a boolean expression
loop statements: for, while,
do loops. Repeat a sequence of statements depending
on the value of a boolean expression.
switch statements: Select one of many choices
depending on the value of an integer or character expression.