In what area is C ++ used?

My juniors have asked me many times about areas where C ++ is widely used. I usually answer operating systems. Are there any other areas where it is widely used?

+6
c ++
source share
15 answers

A fairly large and probably fairly final list of software written in C ++ can be found on the Bjarne Stroustrup home page .

+14
source share

Numerical calculations: physics, graphic games, finance, statistics;

Bit-driving: drivers, operating systems, networks, embedded devices;

Anywhere you need precise control over memory allocation.

+5
source share

C ++ is also heavily used in real-time financial data software. Latency is very important here. C ++ is a great choice as it is almost close to metal.

+4
source share

I would not say that operating systems really are. The Linux and Windows kernel is mostly C, with only C ++ user-defined material (provided, drivers can be written in anything). I'm not sure about Mach (OS X), but I wouldn't be surprised if it were mostly C.

C ++ filled this wonderful thread, "Object-oriented, but fast enough for dinky computers in the late 80s and early 90s." Accordingly, everything written in the 90s had a good chance of being written in C ++; applications, drivers, games, whatever.

Today, the new development seems to be performed mainly in managed (JVM / .NET) languages. Not that there is no new development in C ++; games in particular are still limited enough to use C ++ in many cases.

In short:

  • Drivers
  • Games
  • LEGACY CODE
+3
source share

C ++ and C are heavily used in embedded systems because they can have deterministic control over memory and other scarce resources. I think most games (well, at least in the games that I play) are still written in C ++, probably because there are large frameworks written in C ++ that have been fully tested and very capable .

+3
source share

Around Basingstoke, apparently.

(unemployed C ++ guy in Glasgow)

+2
source share

it is used wherever you find that it solves your problems. Compilers writing drivers ...

+1
source share

He is currently in the development of games and performance-critical applications. However, there are many old things written in C ++ that were mostly written before Java and .NET were introduced, and this code still needs to be maintained.

+1
source share

Consider this: from the introduction of MFC to the implementation of the .NET platform, C ++ was the preferred language for developing Windows. So you need to say something. It is preferred by Microsoft that many developers still prefer it to .Net languages.

C ++ is a language capable of programming the system level, but also thanks to the provision of extensive libraries, it is also used to program applications. I would suggest that almost all applications running on your desktop PC were written in C ++.

If you can get a library for anything, you can almost certainly get it for C ++.

It is widely used in the gaming industry and to some extent in the integrated system domain.

Therefore, I would say "everywhere." It is, after all, a general-purpose programming language.

+1
source share

I have seen that C ++ is used quite often in graphical interfaces, since the object-oriented nature is natural for widgets.

I once saw that it is used in safety-critical code for aircraft. It still gives me nightmares.

+1
source share

Any Qt- based application will use it since Qt is written in C ++.

In addition, since KDE is based on Qt, the entire desktop environment is created to a large extent, including applications designed to work inside it in C ++.

+1
source share

C ++ on operating systems: no kernels (the main bit that really does all the unpleasant work, such as memory management and drivers) that I know about are written in C ++, just C. Linux is written in C, and also Windows.

See here: What languages ​​are Windows, Mac OS X, and Linux?

Applications (not the kernel bits that make up the OS) these days are written in any language that is best suited for the job.

You chose C ++ if the following was important to you:

  • You want to make heavy use of classes and inheritance
  • Do you plan to work on only one OS
  • You want reasonable performance
  • Your developers already know C ++
  • You want to divide the work on such components into different people or teams (every time a class or interface is implemented),

You can do all of the above with C, portability between platforms is still a problem (C ++ is equally platform dependent, like most C). In C, you have to be more strict using static and dynamic analysis tools. An easier memory leak in C than in C ++, too.

0
source share

Most antivirus programs are written in C ++.

0
source share
  • C ++ has written several major operating systems
  • Uncompromising low-level efficiency, important for C ++. This allows us to use C ++ to write device drivers.
  • Numerous numerical, scientific, and engineering calculations are performed in C ++.
  • Graphics and user interfaces are areas in which C ++ is used primarily.
  • C ++ is widely used for training and research.
  • Games
-one
source share

In legacy code ...

Even Stroustrup admits that C ++ has many errors, most of which are inherited from C. That's why C ++ 0x is being developed.

-4
source share

All Articles