Switch and Case
Im tryin to use switch() and case: in my code to make it neater and more compact but I keep gettin numerous errors with it no matter how I change it around. Can someone post the right method of usin switch() and case in smalls?
|
I think I've been using this:
Code:
|
wow... that was very helpful pm LOLZ :P
|
isnt it like case1: statement or
case1: { statements } does Case1: statement Case2: work? Also, why are some of the smart peopel here now belong to the member group of a pet... like PM is a Hamster and I think Avalanche is a turtle. |
This format is used with only one line :
Code:
Code:
|
Yeah that's what I thought but everytime I try that I keep getting errors whenever I compile. Can't tell you what it is right now though becuase im at school.
|
| All times are GMT -4. The time now is 19:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.