Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- // Version One
- switch( var )
- {
- case 0:
- doSomething();
- case 1:
- doSomething2();
- default:
- handleException();
- }
- // Version Two
- switch( var )
- {
- case 0:
- doSomething();
- case 1:
- doSomething2();
- default:
- handleException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement