Raised This Month: $ Target: $400
 0% 

switch problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 01-29-2013 , 06:43   switch problems
Reply With Quote #1

new i = 10
if i want to get 1 to 10 = case 1..10

but if get 1 and 10..how to do?
__________________
I Come from Hong Kong.
my English is very poor
manfailui is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-29-2013 , 06:55   Re: switch problems
Reply With Quote #2

case 1:
case 2..9:
case 10:

? O_O
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 01-29-2013 , 06:58   Re: switch problems
Reply With Quote #3

Quote:
Originally Posted by Bos93 View Post
case 1:
case 2..9:
case 10:

? O_O
so if i want to get 1 and 5 just can like this?
case 1{}
case 2..4{}
case 5{}
case 6..10[]
__________________
I Come from Hong Kong.
my English is very poor

Last edited by manfailui; 01-29-2013 at 07:00.
manfailui is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 01-29-2013 , 07:01   Re: switch problems
Reply With Quote #4

case 1, 10:
jimaway is offline
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 01-29-2013 , 07:06   Re: switch problems
Reply With Quote #5

Quote:
Originally Posted by jimaway View Post
case 1, 10:
thank you very much
__________________
I Come from Hong Kong.
my English is very poor
manfailui is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode