A Simple C++ Program

Let’s walk through the steps to create a simple C++ program that will calculate a circle’s area using the formula area = pi x r2 First we’ll set up our preprocessor directives, and an empty main function. Next we will need to define variables that will be used by the program. In C/C++ we must…

An Introduction to C++

A little bit of history C++ is an expansion of the C programming language. It’s main addition was the ability to create and use objects. That makes it an Object Oriented Programming (OOP) based language. You do not have to start with objects however, as it retains all of the C procedural language constructs and…

A Sample C++ Program

Let’s look at a simple program and work through it step by step. #include #include statements are at the top of the file, and let you include any libraries you might need. iostream, in our example is used to help process input and output. You might think this is standard, but if you are building…