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 #100018: OMGWTF SecureCalc

by Chris Doggett
I wanted to build a secure calculator to keep prying eyes from seeing the results of the calculations. What I came up with should easily surpass Dept. of Defense standards for data security.

Features include:
STL maps for optimization
STL strings and stringstreams!
O(n) in-place string reversal!!
Pointer arithmetic!!!
Test-driven development (Red-Green-Repeat)!!!!
Palindrome checker?(!^5)
Reckless conversion between STL strings and char arrays(!factorial)
Overuse of exclamation points!!!!!!!!!!!!!!!!!!!!!!!

Also, in true hacker fashion, I have add

Download1 Comments