How do I run a CPP program in Linux?
Answer
to compile and run a c++ program in ubuntu follow these simple steps:
Answer
to compile and run a c++ program in ubuntu follow these simple steps:
- open terminal window.
- type “gedit” .
- A gedit window will appear whereyou can write your program.
- save your program as “filename. cpp” on desktop, “. …
- open terminal again and type “cd Desktop”.
- In second line type “g++ filename. …
- Type “./a.