Learn Finance C++, Lesson 5, Prototypes, Header files, and Multiple C++ files
Andy009Duncan
Computer programs quickly become complicated. To help ease this process, we should separate out all distinct pieces of code into their own files. However, this gives the C++ compiler a headache, knowing what to look for and which files and which bits of code to compile. Therefore, we need to declare function prototypes in header files, to let the compiler know what it's looking for. These header files are then referred to at the top of the main C++ file, to act as guides for the compiler. Once the compiler knows what it's looking for, it can then compile all the separate files cleanly and easily. The end result is that each file is much smaller, more encapsulated, and easier to understand. This is a big step towards object orientation.
http://andyjamesduncan.wordpress.com
Find code blocks here:
http://andyjamesduncan.wordpress.com/2013/01/12/learn-finance-c-lesson-5-prototypes-header-files-and-multiple-c-files/ ... https://www.youtube.com/watch?v=-WMzgg4myg4
49870851 Bytes