After using switch case for my varriable input and and output code,i found it hard 2 gather all the case in one window after running each case statement.pls can someone help.
switch case
Started by kenex, Jan 31 2009 11:28 PM
3 replies to this topic
#1
Posted 31 January 2009 - 11:28 PM
|
|
|
#2
Posted 01 February 2009 - 04:21 AM
Without seeing your code, it's hard to help. You can always take the logic of the switch and put it inside a loop that passes the switch each value it will check against for testing purposes.
#3
Posted 01 February 2009 - 05:13 PM
I dont think i understand what u mean by "i found it hard 2 gather all the case in one window after running each case statement"
#4
Posted 01 February 2009 - 08:18 PM
ok, i got the logic,its simply removing the "break;" in each switch case statement,


Sign In
Create Account


Back to top









