轉到或切換

在 C++中,你可能無法使用 goto 或 switch 跳過初始化。以下內容在 C 中有效,但在 C++中無效:

goto foo;
int skipped = 1;
foo;

這些錯誤可能需要重新設計。