Quote:
Originally Posted by andyp guru what about putting the default on the same line?. i think you should make functions for each case that way it makes the source code a lot easier to read. |
For some reason, I don't recommend this... I'd rather have it organized this way:
Code:
case 1:
// do something
break;
case 2:
// do something
break; it's much easier to understand and very organized. I don't know if it's only for me, hopefully other programmer feel the same way...?

since programmers write codes so that other programmers can read it!!! XD