C++ Programming Tutorials – 1 – What is C++?

Before we can begin programming in c++ we must understand what c++ really is. In essence c++ is just a programming language which allows
The ‘programmer’ to type commands that the computer can understand. Think of it like a dog trainer who is teaching the dog how to roll over. In this circumstance the trainer would be the programmer and the dog would the The computer. Importantly the instructions that the
Trainer is telling the dog, would be the code and the way that the trainer is communicating with the dog is the programming language or in our
case c++. Just like in English or French a programming language Has grammar or syntax rules. For example, in English to indicate the end of a
sentence we use a full stop or period whereas in c++ to indicate the end of a sentence or line you would use the semi-colon. So now we know that c++ is a programming language, why should you learn how to write it rather than other languages like python and ruby. Each language has its strong points and for c++ they are mainly its ability to write programs that run incredibly quickly. This is why
C++ is commonly used in game development and business applications. For example most of the programs that you use on a daily basis where
Likely written in c++ for example programs like Google chrome, Microsoft office are all written in c++. So how to does c++ achieve such great speeds, well the main reason is because it is a mid level language, meaning that it can quickly
Communicate with the hardware, such as the keyboard or screen but still be reasonably easy to program in. For example think of it like
A system of logo blocks where in a high level language there are pre build structures such as a house, whereas a low level language would
Not have many pre build structures but would have the essential basics for creating those structures. The low level languages in programming
Run very fast and are used to write firmware and operating system like windows. whereas the high level languages run slower but are generally
Easier to program in C++ is positioned in the middle boasting high speeds and ease of programming, hence it is a mid level programming.
Language. So now that we have a basic understanding of the strength and weaknesses of c++

Leave a Reply

Your email address will not be published. Required fields are marked *