char action;
how do i make it so that there's an OR in the case? when i do it like the example below it gives me an error.
switch(action)
{
case 'e' || 'E': break;
}
Printable View
char action;
how do i make it so that there's an OR in the case? when i do it like the example below it gives me an error.
switch(action)
{
case 'e' || 'E': break;
}
Try this...
Code:switch(action)
{
case 'e':
case 'E':
break;
}