How do I run a CPP file in Ubuntu?

Duyên Trương

New member
How do I run a CPP file in Ubuntu?
Answer
How to Compile and Run C/C++ program on Ubuntu 11.10
  • Write and save the program. Open a simple text editor (e.g gedit), IDE (Eclipse) or command line code editor (Nano or Vim).
  • Compile the program. GCC (GNU Compiler Collection) is installed by default, in Ubuntu.
  • Execute the program. To execute the program, you need to run – ./hello1.
 

Tìm kiếm

Back
Top