Video tutorials about programming in the C++ programming language.
* switch statement
Pardon my imperfect english.
If you have any suggestions about how to make this video clearer, more n00b helpful, and explanatory, please send me a message.
If you have any C++ questions, please comment.
You cannot use regular variables in your switch cases. You can only use constant expressions.
A const variable is ok.
A literal number (like “case 1” or “case 2” etc) is ok.
A literal chatacter also works (like case ‘a’ or case ‘A’ etc)