View Single Post
  #1 (permalink)  
Old January 23rd, 2007, 04:27 PM
seymour_glass seymour_glass is offline
Authorized User
 
Join Date: Jan 2007
Location: , LA, .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to seymour_glass
Default switch statement

ok so I'm a little confused about this. What chooses the cases? I am writing a simple console app that displays an output based on a entered variable (in this case, a letter grade i.e. A, B, C etc) so should it look like:

switch
{
    case A: code

    case B: code

    case C: code
}
??
Do A, B, and C need to be declared first??
Reply With Quote