C++ Tutorial

C++ Tutorial


C++ Tutorial

In this tutorial, we are going to learn about the C++ programming language from the very basics to the industry level. C++ is a middle-level, Object Oriented programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This C++ tutorial adopts a simple and practical approach to describe the concepts of C++ for beginners to advanced software engineers.

Reasons to learn C++

We use C++ because we have real-time critical safety performance requirements, and for that, there are no other things, besides C. Furthermore, today's AI industry is basically built upon C++. AI scientist, data analyst may prefer simple language bindings like python, but any serious project has to use C++ in its very core. C++ will continue to be used by many companies in the autonomous driving space for the foreseeable future.

C++ is also commonly used in embedded devices and in firmware for all kinds of stuff. C++ also has the advantage that it is an open ISO standard not owned or controlled by any one corporation in the way that e.g. Java, Swift, C# are. This might matter less to you than it does to me.

  • High Performance Computing - C++ is one of the few high level languages with high performance and direct access to the operating system calls that are exposed in C. Examples of HPC are programming related to physics, finance, fluid mechanics, finite element methods, games engines and so on.
  • Develop firmware for embedded systems :such as microntrollers and embedded processors for controlling home appliances, car's fuel injection, motors, robots and so on. Those systems have memory constraints and many of them does not   even have operating system.
  • High performance software components or libraries - It is possible to write libraries of higher level programming languages in C++ and getting the best of both worlds, for instance, one could write high performance python, java, R or C# libraries in C++.

  Example using C++

Output :