How to run c++ program in ubuntu ?


        Use the following command to run c++ program in ubuntu

         1) press CTRL+ALT+T
         2) go to the folder where the file exists using "cd foldername".
         3) g++ main.cpp -o main
         4)./main

      If g++ wasn't installed in your computer install it by using the following command

           sudo apt-get install build-essential