Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int next_command = 0;
- while (true) {
- switch (next_command) {
- case 0: ... next_command = 1; break;
- case 1: ... next_command = 2; break;
- case 2: next_command = 10; break; // simulate goto
- ....
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement