Quantcast
Channel: noob help with switch/case
Viewing all articles
Browse latest Browse all 11

noob help with switch/case

$
0
0
Your code looks good (assuming this is a cut and paste of what you are actually compiling).

If the user enters any of the valid notes, the respective case clause should execute then break out of the switch.  If none of the valid keys are pressed the default clause will execute.

Have you stepped through this in a debugger and verified that both clauses are actually executing?  For what value of keys?


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>