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.



Entry #100320: ChickenCalc

by Chicken Little
In this version of the OMGWTF calculator I decided to take a minimalistic approach to solving the problem. That is, I used the minimal number of features of the C++ language. I made use of only two data types; char and bool. There are no conversions between text strings and number types, and there is no math done on any of the data. Any math done in the code is only done to the pointers.

For program flow control I used while loops, the if statement, and ?: operator.

I also did not make use of any of the CRT functions in the calcfunc.cpp file, although there are still some in main.cpp.

Download0 Comments