goto statement

来自cppreference.com

 
 
C語言編寫
大會的主題
Original:
General topics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
預處理器
評論
關鍵字
ASCII表
轉義序列
C
流量控制
Original:
Flow control
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
條件執行語句
Original:
Conditional execution statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
迭代語句
Original:
Iteration statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
跳轉語句
Original:
Jump statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
goto statement
return statement
功能
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
函數聲明
的歷史。內嵌說明
類型
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
規範
Original:
Specifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CV符
存儲類說明
alignas說明 (C99)
Original:
Literals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
表達式
Original:
Expressions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
為了評價
其他運營商
運營商
運算符的優先順序
實用工具
Original:
Utilities
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
typedef declaration
屬性 (C99)
轉換
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
內聯彙編
 
控制權轉移到所需的位置
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.
時使用的,否則不可能將控制轉移到所需的位置,採用傳統的結構.
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.

目錄

[编辑] 語法

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.

[编辑] 關鍵字

goto

[编辑] 為例