It must be where the compiler can find it ideally the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: We locate a file containing the functions – We insert an ‘include’ statement to include them in our program • Where does the ‘include’ file go? – It must be where the compiler can find it – Ideally – the same folder as your source file • Where does the ‘include’ statement go? – Put them together near the beginning 04/29/09 R. Smith - University of St Thomas - Minnesota 4 #include statement • Format: – #include filename • The filename names the file to include – Traditionally ends with ‘.h’ suffix (‘header’ file) • File may be located in program’s folder – Na...
View Full Document

Ask a homework question - tutors are online