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

Entry #100320 - ChickenCalc

Last post 06-11-2007 12:09 PM by Alex Papadimoulis. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-11-2007 12:09 PM

    Entry #100320 - ChickenCalc

    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.
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems