How to edit, compile, and run C++ programs | Computer Science
https://cs.hofstra.edu/docs/pages/guides/compiling_cpp.html30.03.2018 · How to edit, compile, and run C++ programs. Author: Yi Liu; Editor: Logan Kerr; March 30, 2018 11:47 AM; Edit me. Edit. Open up your favorite text editor, (gedit, emacs, or vi, refer to this quick manual question 1), create a file with .cpp extension. For example, I could create a simple c++ program like the following: #include ...
Compiling and running C++ programs
www.cs.ecu.edu › ~karl › 2530Compiling a C++ program using g++ Use g++ to compile a C++ program. Command g++ -Wall -W -o name prog.cpp translates prog.cpp from C++ to machine language , creating executable program called name. Option -Wall requests all normal warnings. Option -W requests a few more that are useful.