| |
Chapter 3. Control Flow |
|
| |
|
|
| |
1. Statements and Blocks ......................................................... |
2 |
| |
1.1 Statements |
|
| |
1.2 Blocks |
|
| |
2. Control Conditions ............................................................... |
3 |
| |
2.1 The if Statement |
|
| |
2.1.1 The if-else statement |
|
| |
2.1.2 Nesting if Statement |
|
| |
2.2 The switch statement |
|
| |
3. Loop Statements ............................................................... |
4 |
| |
3.1 Loops – While and For |
|
| |
3.1.1 while statement |
|
| |
3.1.2 for statement |
|
| |
3.1.3 The do-while Loop |
|
| |
3.2 Break and Continue |
|
| |
3.3 Goto and Labels |
|
| |
3.3.1 goto statement |
|
| |
3.3.2 error handling |
|
| |
Summary .................................................................................. |
5 |
| |
|
|