Skip to content
BENIBIX Learn

C++

Development🔤 LanguagesPopular Languages

Also known as CPP, C Plus Plus

C with classes and much more added. Fast, powerful, and used for games and browsers.

Think of it like

Think of it like a toolbox built around a hammer. The hammer is C, and new tools were added.

Example

A studio in Tokyo writes its racing game's engine in C++. The game draws 60 frames each second.

Why it matters

When software must be both large and very fast, C++ is often the choice. Most big game engines use it.

Definition

C++ is a language built on C that adds classes and more. Bjarne Stroustrup started it at Bell Labs in 1979. It keeps C's speed and control over memory, and adds ways to organise large programs. Game engines, web browsers and trading systems often use it. It is powerful, but large and hard to learn fully.

Example code

cpp
#include <iostream>

int main() {
    std::cout << "Hello, world!\n";
}
The C++ way to print uses std::cout and the << sign.

Common mistake

Treating C++ as C with a few extras. Modern C++ has its own style, and old C habits cause bugs in it.

Key takeaways

  1. 1
    Built on C. Most C code also works in C++.
  2. 2
    Speed and structure. Fast like C, organised with classes.
  3. 3
    Big language. Few people know every part of it.

Compare

Learn it properly