Created
May 28, 2016 22:51
-
-
Save TheZoq2/32f2a6149ef7764afcdb727d554f1bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum State | |
| { | |
| LOAD_DATA, | |
| MODIFY_DATA, | |
| SAVE_DATA, | |
| FUCK_YOU, | |
| } | |
| State state = LOAD_DATA; | |
| ///KOOOOD | |
| switch(state) | |
| { | |
| case LOAD_DATA: | |
| //load data | |
| break; | |
| case MODIFY_DATA: | |
| //modify data | |
| break; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment