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 #100030: Structural Programming
by John Millikin
To operate the GUI, select values or operations from the dropdown menu. To clear the interface, select "Clear". To solve the current equation, select "=" (at the bottom). The result MUST be cleared before entering the next equation.
All the equation solving code is in eval.cpp, and all the GUI code is in ui.cpp. It's safe to ignore tests/, those are just a collection of unit tests.