C++ Tutorial for Beginners 12: The “(If)” Statement

"If" lets you choose the actions you take in your C++ program, making it do far more than just output things one after another. With "if", you can take different actions depending on user input or the results of calculations, or depending on what else is happening in the electronic world.

Click here to download source code for this tutorial.