Installing a C++ Compiler
The same compilers used for C — GCC (as g++) and Clang —
also compile C++.
g++ --version
clang++ --version
This course targets C++20 — confirm your compiler supports it
with g++ -std=c++20 -dM -E -x c++ /dev/null | grep __cplusplus, or
simply by compiling the examples below with -std=c++20.