Tag Archive: c++

If Statements Part 1:
Avoiding Silly Errors

If else statements are one of the most fundamental control structures available in C++ and Java. The concept of the if statement is so simple that it is surprising that there are a number of important issues related to it. In this series I will highlight some of the problems and issues related to the humble if statement.

In this first instalment, I will focus on a simple method that helps avoiding silly mistakes.