How do I run a CPP file in Unix?

How do I run a CPP file in Unix?
Answer
Compiling a C++ program
The GNU C++ compiler is called g++. To run it, you use command g++, followed by options, followed by one or more files to compile. You should always ask the compiler to give you warnings. Warnings are advice that the compiler gives you telling you where you might have made a mistake.
 

Tìm kiếm

Back
Top