Код: Выделить всё
bool running = true;
while (running) {
startOfLoop:
if (userWantsToQuit) running = false;
}
if (canQuitRightNow) {
quit();
} else {
// Unsaved files, etc.
running = true;
goto startOfLoop;
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... de-cleaner
Мобильная версия