goto statement
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
控制權轉移到所需的位置
Original:
Transfers control to the desired location
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
時使用的,否則不可能將控制轉移到所需的位置,採用傳統的結構.
Original:
Used when it is otherwise impossible to transfer control to the desired location using conventional constructs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目錄 |
[编辑] 語法
goto label
|
|||||||||
[编辑] 解釋
goto語句將控制轉移給指定的位置,由label。 goto語句必須在相同的功能,它是指label。如果goto語句將控制倒退,所有的對象,這些對象尚未初始化的label被析構。這是不允許的,如果這樣做會跳到一個對象的初始化傳輸控制轉發.
Original:
The goto statement transfers control to the location, specified by label. The goto statement must be in the same function as the label it is referring. If goto statement transfers control backwards, all objects, that are not yet initialized at the label are destructed. It is not allowed to transfer control forwards if doing so would skip initialization of an object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 關鍵字
[编辑] 為例
| 本節是不完整的 原因: no example |