I'm working on a program for a programming class and from what I can tell, you can't use a boolean expression in a switch/case. I don't need a solution but, rather an answer if it can be done. I want to say.. for example:
case (age <= 12)
do this;
break;
I'm pushed into a Windows world but, run Redhat derivatives at home for the most part and run Windows in a virtual machines. I've googled everything I can think of.
Can anyone at least point me in the rigth direction to find a way to do it?