void xx(char cc) { char aa; switch(cc) { case 1:case 0: aa=1; break; case 2,3: aa=2; break; } }
//----------------------------------
xx(0); //run OK xx(1); //run OK xx(2); //run FAIL <<***************** xx(3); //run OK
In my opinion, you should attend a good, taught class.
There again, if you're like me you won't have the time to do anything like that because you'll be way too busy keeping an eye on every post on every forum and posting the same old non-specific crap.