How do I run a CPP file in Linux?

How do I run a CPP file in Linux?
Answer
Learn and Try
  1. Open terminal.
  2. Type command to install gcc or g++ complier:
  3. Now go to that folder where you will create C/C++ programs. …
  4. Open a file using any editor.
  5. Add this code in the file: …
  6. Save the file and exit.
  7. Compile the program using any of the following command: …
  8. To run this program type this command:
20 июн. 2014 г.
 

Tìm kiếm

Back
Top