About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100315: NOOB-Calc

by Adam Shelly
The Numeric Object Oriented Button Calculator (NOOB-Calc) is designed based on one simple theory: Objects are good, but c++ numbers are not objects. So they must be replaced with a well designed number class. Therefore, I have created class Number, and it's subclasses One, Two, Three, etc. There are no digits in the source or headers for these classes.

Known bugs:
Too many to list, but mainly:
-doesn't handle long division
-has trouble with decimal points
-leaks memory like crazy.

Download0 Comments