Jump to content

switch case

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
kenex

kenex

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
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.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
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
kenex

kenex

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
ok, i got the logic,its simply removing the "break;" in each switch case statement,