install cpp in ubuntu code example
Example 1: install c++ ubuntu
$ sudo apt install g++
g++ -o hello hello.cc
./hello
Example 2: how to run cpp in ubuntu
DOWNLOAD DEVC++ OR TURBOC++ IF IT CANT RUN , RUN IN VS CODE BY GIVING g++ foo.cpp IN TERMINAL .