Emile Beergeron

Members
  • Content count

    0
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Emile Beergeron

  • Rank
    Newbie
  1. C++ Debugging

    I know that this article is more then ten years old, but I find it interesting. I do have a method that is not listed in the article, I would call it Forcing Default Value. It does not really help to debug, but it helps with stability of your code. e.g. [CODE] const int DEFAULT_VALUE = 15; void someFunction(int number){ if ((number < min) || (number > max) || (number == NULL)){ number = DEFAULT_VALUE; } // doSomething with the "number" var } [/CODE]