30.4 switch Statement

I l @ ve RuBoard

  • Always put a default case in a switch statement. Even if it does nothing, put it in:

     switch (expression) {      default:          /* Do nothing */;         break; } 
  • Every case in a switch should end with a break or a /* fall through */ statement.

I l @ ve RuBoard


Practical C++ Programming
Practical C Programming, 3rd Edition
ISBN: 1565923065
EAN: 2147483647
Year: 2003
Pages: 364

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net