[c++] How do I select a range of values in a switch statement?