Hint2 for Lab 3 on switch statements
Common mistakes:
- forgetting the {}'s or not placing them correctly. See class example
- forgetting the ()'s. See class example
- forgetting the breaks. See class notes
Another hint:
- 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