How do I save a CPP file in Ubuntu?

Linh Chi

New member
How do I save a CPP file in Ubuntu?
Answer
Run a C/C++ program on terminal using gcc compiler
  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:
 

Tìm kiếm

Back
Top