Introduction to C++
What is C++?
C++ is a low-level programming language which means that you can do things like directly manipulate memory. C++ is based on the C programming language, except C++ has classes and other things that C does not have.
History
C++ was created by Bjarne Stroustrup as an improved version to C. C++ is quite old compared to other programming languages, being released in 1985.
Uses
C++ is very fast, so it is used in places where speed and efficiency are very important:
- Games
- Operating Systems
- Animation
- Databases
- Compilers
- And much more!
Running C++
C++ is a compiled language which means that C++ takes your code and turns it into an executable, which is machine code that your computer can natively understand, no compiler or interpreter needed. Then, we run the executable.
C++ has many compilers, but for this tutorial series we will be using the GCC compiler. Once we install GCC, we can use the g++
command to compile our C++ code.