Practical uses
- Build game engines and real-time graphics
- Create browsers, databases, and desktop applications
- Program robotics and low-latency systems
- Optimize performance-critical libraries
A fast, compiled language that builds on C with classes, templates and a large standard library.
C++ extends C with classes, templates and a standard library of containers and algorithms. It is used where performance matters, such as game engines, browsers, trading systems and embedded software.
C++ uses the same compilers as C. GCC, Clang, and MSVC all support C++. Use the g++ or clang++ commands instead of gcc/cc.
# Same options as C — install GCC via MSYS2 or use Visual Studio
# With MSYS2:
pacman -S mingw-w64-ucrt-x86_64-gcc
# Use g++ to compile C++:
g++ hello.cpp -o hello -std=c++17
# Visual Studio (MSVC):
# cl /std:c++17 hello.cppLearn the basics first, then pick up these tools when a project needs them.