compile cpp in ubuntu code example
Example 1: compile c++ linux
g++ foo.cpp -o foo //plus other extension like the opencv to compile correctly
Example 2: how to run cpp file ubuntu
g++ foo.cpp
Example 3: 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 .