Jump to content

Cplusplus: Difference between revisions

216 bytes added ,  6 December 2007
no edit summary
mNo edit summary
No edit summary
Line 68: Line 68:


  g++ -o first first.cpp
  g++ -o first first.cpp
The -o parameter allows you to tell the compiler where you want to have the compiled program saved and what you want its name to be. In this case, it'll be compiled to the same folder as your source file, first.cpp


Your program ''should'' compile. If it does, run it by entering
Your program ''should'' compile. If it does, run it by entering
244

edits