since a is an int, you need to remove the ' ' around the numbers
characters can be used in switches becuase they are stored as integers using the ascii code. So case '1': is the same as case 49:
Printable View
since a is an int, you need to remove the ' ' around the numbers
characters can be used in switches becuase they are stored as integers using the ascii code. So case '1': is the same as case 49:
you dont do this:
you do this:Code:case '1':
{
//blah
break;
}
Code:case '1':
//blah
break;
sry lol yah hes right.