How to code in C ++. Programming in Linux 7

How to code in C ++

En this panorama of the opportunities Linux offers for programmers, vo and dedicate the following articles to review the characteristics of some of the available programming languages and how to install them on certain Linux distributions.

Coding in C ++

C ++ is one of the most widely used programming languages ​​today.  From search engines to virtual reality applications, through air reservation programs and space exploration, they make intensive use of its features.

Although it is a general purpose language, it is ideal to push it to the limit. Either to motorize large-scale software or applications that have to run in limited environments.

Since C ++ can directly manipulate hardware, developers can tailor programs to each runtime environment. The result is an application that can run quickly on any device.

This is why C ++ is the choice of many programmers to build the base layer of many important applications.

Why use C ++?

Besides that Linux has all the necessary tools to program it in its repositories, and the abundance of free documentation available on the net, C ++ helps us to create applications that are fast, that make efficient use of system resources and that are reliable in performing critical tasks.

What is C ++ used for?

  • Operating systems: Since operating systems must be fast and efficient in managing resources, C ++ is ideal to build them due to its low-level capabilities close to machine code.
  • Game creation: Running games are often very demanding on hardware resources. By programming them in C ++ it is possible to optimize their use by adjusting the data structures and memory management.
  • Internet of things: Since the programs that make these types of devices work are embedded within a device, they have to operate with limited computing resources and low power consumption. This is why C ++ is the ideal language.
  • Web browsers: C ++ is used for database recovery and interactive page recovery.
  • Machine learning: The C ++ language has an extensive collection of libraries for the specialized calculations required by these types of applications.
  • Virtual and Augmented Reality: This type of technology requires the handling of large amounts of data that are constantly updated according to the input of the camera sensors and the interaction of the users.
  • Financial industry: This sector has to process millions of daily transactions and facilitate an enormous volume and frequency of operations. C ++ is also ideal for simulating scenarios.
  • Medical technology: Diagnostic imaging requires a precise interpretation of the nuances of the same.
  • Flight simulators. To reproduce actual flight conditions, hardware and software must act simultaneously in real time.

Programs that use C ++

Some of the applications built with this language

  • Operating systems: Symbian, Windows, MacOS and iOS.
  • Games: World of Warcraft, Counter-Strike and StarCraf
  • Consoles: Xbox, PlayStation and Nintendo Switch.
  • Game engines: UnrealEngine.
  • Open Source: Mozilla Firefox, Mozilla Thunderbird, MySQL and MongoDB
  • Browsers: Google Chrome, Safari, Opera

Installation on Linux

We must install the necessary tools

On Fedora / CentOS / RHEL / Rocky Linux / Alma Linux
sudo groupinstall 'Development Tools'
On Debian and derivatives
sudo apt update
sudo apt install build-essential manpages-dev

All distributions

Check the compiler location
whereis gcc
Determine the compiler version
gcc --version

Some built-in development editors for C ++

Among the options available in the Linux repositories and in the Snap and FlatPak stores are:

  • VS Codium
  • Visual Studio Code
  • Code :: Blocks
  • Eclipse.
  • NetBeans
  • QTCreator
  • Atom

C ++ is probably not the ideal choice to start programming. But, you should definitely have it on the list for when you decide to undertake more ambitious applications. The web is full of free resources, some in our language, to teach you to master the complexities of this language.


A comment, leave yours

Leave a Comment

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

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Jorge Jose Mustelier Sarmiento said

    Very good explanation 6 everything they say. It really is a tremendous programming language that we should all take advantage of. Thanks I'm a fan of c ++