how to install c++ for ubuntu code example Example: install c++ ubuntu $ sudo apt install g++ g++ -o hello hello.cc ./hello