Home » Programming » Learn C++ Programming

Learn C++ Programming

Why would you want to learn C++ programming anyways?

First of all this is the first to come of many more C++ tutorials. I will update this tutorial at the top with a link to the next chapter each time a new one is released!

People should learn c++ or coding in general because it can be fun! To be a bit more clear you should learn c++ if you:

  • Enjoy seeing the results of your work.
  • Enjoy writing, debugging and documenting code.
  • Enjoy spending quite a bit of time working by yourself.

Also the world that we know of is run by computers. By learning how to program you can easily automate things which would take much longer if done by hand! The skills you learn by programming are also transferable to other related fields and C++ is similar to other languages so you could always easily learn another language with less difficulty in most cases! You could be working on something as simple as sorting files by date or creating a program to solve a specific engineering problem!

The programming language.

C++ is a high-level programming language meaning, it is much easier for humans to read and develop. An example of a low-level programming language would be something like assembly which is a machine language and is very time consuming and harder to understand when developing more advanced programs. One of the reasons C++ is so popular is because of its portability, many different types of computers can run the same code with little or no changes! Hopefully after this tutorial you will have a better idea if you could like to learn c++ programming.

What does a program contain?

Well a C++ program typically contains a few different things including:

  • A programmers block
    • An area set aside in the program for anyone reading the program to understand more about the program itself.
  • Various elements
    • Operators
      • Symbols that control how data is manuplicated.
    • Self-defined variables
      • Names that you define.
    • Key words
      • Names that are special to the compiler.
  • Statement
    • An instruction that the program will perform
    • Two types of statements
      • Single – ends with a semicolon “;"
      • Compound sourrounded by braced “{}"
  • Variables
    • A storage location in memory set aside for data
  • Constants
    • A Value that cannot be changed by the program
  • Types of data
    • char
    • short int
    • int
    • long int
    • bool
    • float
    • double
    • long double
    • wchar_t

What can it do?

Programs can do various things but the main objective of a program is to:

  • Reading input
  • Processing data
  • Providing output

What do I need?

You need a compiler that supports C++. I prefer the free one Microsoft has, which is called Microsoft Visual C++ 2010 Express. You can download it here

Screenshot below of what Microsoft Visual C++ 2010 Express looks like!


So what now?

You should check out the next tutorial of learning C++ once you feel comfortable with what you have already learned in today’s lecture!

Also to learn C++ programming it will take time, so don’t get discouraged when you look at the code above and feel very confused! Take your time and remember coding in general takes practice much like anything!

About Tyler Bailey

Tyler Bailey is a university student who owns and runs draalin.com. Follow me on