09.03.2011, 00:49
As far as I know, by the definition, expressions in each case must be a constant value like:
And not dynamic variables like yours.
If - else is a 'condition' checking and switch is a 'case' checking.
But, if someone else has other opinion..
Код:
case 1: case 2: ..
If - else is a 'condition' checking and switch is a 'case' checking.
But, if someone else has other opinion..