Learn C++

Welcome to C++! C++ is a powerful, general-purpose programming language used to build everything from operating systems and games to high-performance trading platforms. This page explains what C++ is, why it is worth learning, and what you can build with it.

What is C++?

C++ is a compiled programming language created by Bjarne Stroustrup in the early 1980s as an extension of the C language. The name literally means "C incremented by one" (the ++ operator adds one to a value). It gives you low-level control over memory and hardware while also supporting modern, high-level features such as classes, templates, and a rich standard library.

Because C++ code is translated directly into machine instructions by a compiler, programs run extremely fast. This is why C++ is chosen for software where speed and efficiency matter most.

Why learn C++?

  • It is one of the most popular and widely used programming languages in the world.
  • It produces fast programs, making it ideal for performance-critical software.
  • It teaches you how computers actually manage memory, which makes you a stronger programmer overall.
  • Its syntax is similar to C, Java, and C#, so learning it makes those languages easier to pick up later.

Where C++ is used

FieldExamples
GamesGame engines and 3D graphics
Operating systemsParts of Windows, macOS, and Linux
ApplicationsBrowsers, office suites, and media players
Embedded systemsCars, appliances, and medical devices

Here is a small C++ program so you can see what the language looks like. Do not worry about understanding every part yet, we will explain it all in the coming pages.

A first look at C++

#include <iostream>
using namespace std;

int main() {
  cout << "Hello, future C++ developer!";
  return 0;
}
Note: C++ is not the same as C, but it is closely related. Almost any valid C program is also a valid C++ program, so the skills you gain here transfer well.

Exercise: C++ Introduction

What best describes the relationship between C++ and C?

Frequently Asked Questions

Is C++ hard to learn?
C++ is one of the harder mainstream languages. It gives you manual memory management, pointers, templates and multiple ways to do most things. Modern C++ with smart pointers is significantly safer than older styles.
What is C++ used for?
Game engines, high-frequency trading, browsers, operating systems and anything where performance matters to the microsecond. It is chosen when you need control over memory and no garbage collector pauses.
Should I learn C before C++?
Not necessarily. Modern C++ is a different language from C in practice, and starting with C can teach habits that modern C++ discourages. Learning C first still helps if systems programming is the goal.