Bad at C++? Good!

Miscellaneous Forums/General Discussion/Bad at C++? Good!

I just realized that my original thread on this was deleted (I guess I was asking for it, calling it "OMGWTF")...

This is the Olympics of Misguided Geeks: Create a working 4-operation calculator, and (with some logic) give it the most hilariously bad code you can possibly imagine. Not bad as in no comments or indents, bad as in stupid.
(For example: Calculating each number independently, converting strings to integers using constants and utilizing independent server processes -- based on the same core process -- to telnet to mathomatic.org and find the answers, gradually outputting the answer as a string).

Shall be quite amusing, and it's not too hard to create an entry that feels like a winner!
The prize isn't bad, either.

http://omg.worsethanfailure.com/

I don't want to participate in the contest, but I have a couple ideas. :)

Use for Loops to do the math :)

8 * 3

a=0
For j:Int=1 to 8
For k:Int=1 to 3
a++
Next
Next

9+7

a=9
For j=1 to 7
a++
Next

Another idea.

When the program starts up, make a bunch of arrays to be look up tables for the answer to all single digit problems. Then look up the answers instead of calculating them.

I think you should have it email you the equation and then screen scrape a Hotmail account waiting for an answer.