How compile C++ program in Linux?

How compile C++ program in Linux?
Answer
Follow these steps to run programs on terminal:
  • Open terminal.
  • Type command to install gcc or g++ complier:
  • Now go to that folder where you will create C/C++ programs.
  • Open a file using any editor.
  • Add this code in the file:
  • Save the file and exit.
  • Compile the program using any of the following command:
 

Tìm kiếm

Back
Top