int i ;
std::cin >> i ;
switch(i)
{
case 1: case 2: case 3: case 4:
std::cout << "positive, less than five\n" ; // 1, 2, 3 or 4
break ;
// ... other case labels
default: ;
}
if it is very complex you may need to pre-switch boil the cases down to something the switch can handle. You can do most things with fall-through, but it just depends... nested messy if-statements may also be required. Switches ... have limitations.