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
|
|||||||||
[править] Объяснение
Переводы перейти заявлении управления в месте, указанные label. На заявление должно быть в той же функции, что и label она имеет в виду. Если переводы перейти заявление контролировать назад, все объекты, которые еще не инициализированы в 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.
[править] Ключевые слова
[править] Пример
| Этот раздел не завершён Причина: нет примера |