在閱讀 The C++ Programming Language 4th Edition - Bjarne Stroustrup 過程中的紀錄。

9.1 - Introduction

9.2 - Statement Summary

9.3 - Declarations as Statements

9.4 - Selection Statement

9.4.1 - if Statement

9.4.2 - switch Statement

case 後接的必須是 const expression

9.4.2.1 - Declarations in Cases

9.3 - Declarations in Conditions

if (double d = prim(true)) { 
    left /= d;
    break; 
}

9.5 - Iteration Statements

9.5.1 - Range-for Statements

9.5.2 - for Statements

9.5.3 - while Statements

9.5.4 - do Statements

作者建議少用 do loop

9.5.5 - Loop Exit

9.6 - goto Statements

9.7 - Comments and Indentation