The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Entry #100049 - OMG Enterprise edition

Last post 06-15-2007 2:15 PM by Massimo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-11-2007 12:09 PM

    Entry #100049 - OMG Enterprise edition

    Its based on the skeleton, and the only modified file is "CalcFunc.cpp", so you should have no problems building it. I built my exe with GCC, though, so if it DOESN'T pass the test cases when compiled with VC, let me know and i'll give you the DevCPP project and makefiles so you can try it in the same IDE, but it should work. I wrote this entry as if I was so stupid that I had, for some reason, convinced myself that C/C++ had no arithmetic operators. Thats right, not one place in the code uses +, -, / or *. Also, all the maths are done on a string of charactors. It takes the floats and converts them to string buffers before doing the maths. Also, to make it enterprisey, the actual operations performed by +, /, - and * are configured via an XML configuration file. I especially like the way the "accuracy" of the integer division operation is "improved" to pass the test cases. There are many, many more WTFs in the code.
  • 06-14-2007 9:55 AM In reply to

    • Xeron
    • Not Ranked
    • Joined on 04-28-2007
    • Posts 14

    Re: Entry #100049 - OMG Enterprise edition

    Hooray! I got an honourable mention. I just wish I could have got that high-res jpeg. *sigh* never mind.
  • 06-15-2007 2:15 PM In reply to

    Re: Entry #100049 - OMG Enterprise edition

    Maybe I'm missing something really stupid, but... where are the download links?!?

     

Page 1 of 1 (3 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems