wetelectric Posted January 31, 2007 Share Posted January 31, 2007 private int GetMessage( int selected ) { int index = 0; // Get the Message switch( selected ) { case 0: index = 0; break; case 1: index = 1; break; case 2: index = 2; break; case 3: index = 3; break; } return index; } This one was quite funny..but the comments are even funnier. "pfft I could have done that in 60 lines" -- classic line Quote Link to comment Share on other sites More sharing options...
jool Posted January 31, 2007 Share Posted January 31, 2007 Heh thats just wonderful. Reminds me of something a person I know used to do until I complained enough about it. if(something == correct_value) return true; else return false; Quote Link to comment Share on other sites More sharing options...
cooper Posted January 31, 2007 Share Posted January 31, 2007 I can top that. /* Fun all the way to the bank... [snipping of a zillion empty lines] */ Quote Link to comment Share on other sites More sharing options...
nickisgod1 Posted February 1, 2007 Share Posted February 1, 2007 pfft i could do it in a hunderd. I smell my next analog5 article, "How to add pointless lines to your code for more pay" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.