Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Creating a Basic Program > Compiling a C++ Program

Compiling a C++ Program

Simply put, a compiler does the critical task of taking your C++ source code and turning it into an executable program (one that can be run). It takes high-level instructions and generates the proper low-level machine code that the computer can understand. Every C++ source code file must be compiled in order to execute it, and you must recompile a file after making any changes.

There are two ways you can compile and run your C++ code:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial