C++ Tutorial (26) – Absolute n00b spoonfeed

Video tutorials about programming in the C++ programming language.

Part 26:
* 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)

c++ tutorial


Leave a Reply

Your email address will not be published. Required fields are marked *