There's a quirk in C++ that lets you use multiple cases to activate something.
1 2 3 4 5 6 7 8 9 10 11 12
switch(variable){
case 1:
case 2:
case 3:
dosomething();
break;
case 4:
case 5:
dosomethingelse();
break;
default: break;
};
As soon as one case matches, the following instructions are executed until a break is reached, which includes executing other cases whether or not they match. This is also why when you forget to put any breaks in your switch statement, the program goes into an infinite loop.