How do I run a CPP script?

How do I run a CPP script?
Answer
  1. use notepad++ to write the C++ source code.
  2. using command line change the directory/folder where the source code is saved(using notepad++)
  3. compile: g++ file_name.cpp -o file_name.exe.
  4. run the executable: file_name.exe.
6 июл. 2012 г.
 

Tìm kiếm

Back
Top