How do I run a CPP file in Linux?

How do I run a CPP file in Linux?
Answer
to compile and run a c++ program in ubuntu follow these simple steps:
  1. open terminal window.
  2. type “gedit” .
  3. A gedit window will appear whereyou can write your program.
  4. save your program as “filename. cpp” on desktop, “. …
  5. open terminal again and type “cd Desktop”.
  6. In second line type “g++ filename. …
  7. Type “./a.
11 дек. 2017 г.
 

Tìm kiếm

Back
Top