Everything you need to know to get started with C ++

A language that allows high-level abstraction but still close enough to the hardware that C ++ was intended to be.


What was C ++ launched for? Language deficiencies such as C, Simula, ALGOL, BPCL were created by Bjarne Stroustrup, a Danish computer scientist who began his work on C ++ in 1979, at a time when these languages ​​already existed and had different uses. The idea was to use C as a basis and incorporate simulator (an OOP language) feature that would promote features such as code reusability, general level abstraction, and so on. Why the name C ++? According to Stroustrup, ‘++’ (post increment operator) in C ++ symbolizes the evolutionary change from C.

Learn C ++ tutorials

Bjarne Stroustrup, the brilliant creator of C ++.

Why C in C ++?
C was used as a base because it was reasonably popular at the time and also fast, portable and easy to understand. Overall, in C ++, using a general purpose language we can now perform simple level abstractions (simula) and at the same time stay close to hardware, which makes it extremely easy to perform highly demanding computer tasks with great speed and ease.

Is it still needed today?

Well, enough for the 1980s. The important question is, with the advent of languages ​​like Java, is C ++ still needed? C ++ is still a very popular question that should be answered. Why? Read we will cover it in later article.

Assassin’s Creed (RAII)
C ++ is the only widely used language in the industry that supports RAII features. For those unfamiliar with RAII, it basically stands for Scope Bound Resource Management. Control C ++ is something that it provides in the lifetime of the objects it makes that are lacking in garbage collection or any other management method. Indeed, in other words, a common problem is encountered that objects exceed their lifetime. In C ++ objects can be acquired as well as expressed in a definite manner.

What about performance?
C ++ performs better than all recently created languages, such as Python or Java, which, despite having large libraries, do not match C ++. The reason for this unbeatable performance is the brevity, modular programming and, of course, the closeness of the hardware.

Conciseness? Modular programming?
Abbreviation: Abbreviation refers to the brevity of the code. In other words, how short the code is, is measured as LOC (line of code). The longer the line of code, the higher the cost and effectiveness of a project. This is why many companies, such as Adobe, Amazon, Apple, Facebook, Quora, etc., write some of their basic code in C ++.

Modular programming: One of the most important aspects of software engineering is the concept of modularity, which basically means the ability to create different, independent modules and then link them together in a program when compiling or running. C ++ not only promotes modularity within itself, but also with other languages, such as Assembler or C.


Hello world


Using namespace std;

 Int main()

{cout<<”HELLO WORLD”;}

That’s the sum of the Hello World program. You can see that the simplicity of the program’s writing ability is similar to that of C. In fact, the only change in this program is to use the cout operator instead of the printf () function.

STL: Cool Library
In a previous tutorial on C, we discussed the program for sorting inserts into C. You can do the same thing in C ++ using the same logic, but insert sort is rarely used and some sort functions are hard to write every time. Sort (), ADT (abstract data types) for programming, linked lists, rows, stacks, etc., besides the function can make programming really difficult. This led to the introduction of STL (Standard Template Library). STL not only helps you program, it also reduces compression errors and introduces compactness.
If you want to know more about what STL is, check out its wiki page

Where is C ++ used?

Remember the question we asked earlier, is it still relevant? We will now answer:

First of all let’s consider today’s popular operating system. Windows, Apple OS, Symbian OS all developed in C ++. In fact, most popular Windows versions such as Windows 95, 98 and XP are written primarily in C ++. C #, a language developed for Microsoft’s DotNet framework, is significantly based on C ++. In fact, knowing C ++ makes learning C # much easier. In addition to use in the OS, popular Internet browsers such as Firefox and email clients such as Thunderbird C ++ are created.

Learn C ++ tutorials

Linux and Mac OS-X both use C ++

Here is a list of game engines – 80% to 90% built on C ++. Advanced multiplayer gaming, 3D gaming, and resource management are some of the features that make C ++ mandatory. The infamous root structure created by CERN for high energy physics problems uses C ++. Also, here is some software that you may have used: Adobe Systems uses C ++ for a variety of applications such as Adobe Premiere, Photoshop, Illustrator, InDesign, etc. Google Chromium and file systems are also reported to be using C ++. Even when it comes to database design, parts of MySQL, which is probably the most popular database software in the world, are written in C ++. CAD systems are programmed in C ++ in the company’s civil engineering, such as 12D. Go here for a long list of things created using C ++, and it’s a trusted source because it’s a page written by C ++ creator, Bjarne Stroustrup.

Equipment and learning resources:
The best part of C ++ is the programming environment available for it. There are several IDEs available depending on the OS you use:

Windows: Codeblock, Microsoft Visual Studio, EMacs, QtCreator, DevC ++ and many more.

Linux: DevC ++ or NetBeans.

Mac operating system: CDT with Xcode and Eclipse. Can be used on Emacs, VIM and QtCreator and any one of these OS. From the IDEs listed above, Microsoft is recommended for the development of Visual Studio and QtCreator projects because of the tools and resources they provide. Also, QtCreator is available for free, so have it. Another great resource is www.ideone.com which you can use to compile code online. For the reader’s knowledge only, the compilers used in C ++ are GCC (* nix) and MinGw, the window port of GCC. Thanks to the popularity of C ++ and the abundance of online resources, videos, project repositories, learning C ++ these days is not a big deal for anyone who knows how to use Google. We recommend that sites such as redhoop.com or Noexcuselist go through the MOOC available.

Learn C ++ tutorials

QT createdr

Several sites and even YouTube channels offer C ++ tutorials. Then there is the huge library of good books to choose from:

  • C ++ programming language by Bjarne Stroustroup
  • Effective and more effective C ++ by Scott Meyers
  • Programming: Principles and practices for using C ++ by Bjarne Stroustroup
  • How to program with C ++ HM Deitel, PJ Deitel

A complete list of books can be found here.

In addition, check out this article and this one, which details the special features of recent C ++ updates.
Once you get started, we recommend working on projects. Here are a few:
This article contains about 150 different projects that can be created in C ++, from networking to numbers to even stylizing HTML documents.

Learn C ++ tutorials

It looks like a good text editor

Specific projects we recommend?

Create your own text editor:
You don’t have to create something as good as the image above, but if you try, it will show you the ins and outs of the language – such as open, view, edit, file save, etc. – for coding functionality. Take a look at what we think is a good article for this project.
Here’s a link to a github repository to give you an idea of ​​how to use the C ++ library in Industries. This will lead you to develop a library called Foley, which is now being used and developed by Facebook. The goal of stupidity is to increase the performance of the system as a whole. Another example of increasing the performance of the C ++ system.
Those interested can try reading this too. Another tool developed in C ++ and used Facebook.

Learn C ++ tutorials

Codeblock can be grouped as {C ​​++ IDE’s.

Visit here for tutorials on the other 15 hot programming languages.

Leave a Reply

Your email address will not be published.