C++ – Switch Statement

Working samples:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
...
switch (expression)
{
  case constant1:
     group-of-statements-1;
     break;
  case constant2:
     group-of-statements-2;
     break;
  .
  .
  .
  default:
     default-group-of-statements
}
...