Hint2 for Lab 3 on switch statements

Common mistakes:
  1. forgetting the {}'s or not placing them correctly. See class example
  2. forgetting the ()'s. See class example
  3. forgetting the breaks. See class notes
Another hint:
  1. Use of the default option will be helpful for an error message if the wrong operation is specified


This topic: CenterForComputing > WebHome > Syllabi > SyllabiFall2024 > CSC121SylF2024 > CSC121F2024Lab03 > CSC121F2024Lab03Hint03
Topic revision: r1 - 2024-06-10 - CathyBareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback