23.03.2013 Views

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C++ Compilation<br />

S Usually include files are called header files, are *.h <strong>and</strong><br />

define function prototypes.<br />

S C++ libraries are usually in < >: #include <br />

(compiler looks in st<strong>and</strong>ard library paths)<br />

S Header files you define are in “ “: #include<br />

“myHeader.h” (compiler looks in current directory)<br />

S Using declaration says exactly which function prototypes to<br />

include, or “namespace std” includes all common/st<strong>and</strong>ard<br />

ones.<br />

15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!