Advertisement
Guest User

Untitled

a guest
Nov 4th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. int next_command = 0;
  2. while (true) {
  3.   switch (next_command) {
  4.     case 0: ... next_command = 1; break;
  5.     case 1: ... next_command = 2; break;
  6.     case 2: next_command = 10; break; // simulate goto
  7.     ....
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement