June 12, 2004
could someone explain, in detail what header files do?


June 13, 2004
asdf <asdf_member@pathlink.com> wrote:
> could someone explain, in detail what header files do?

Ok, I'll bite -- although this is such a basic question, you're a lot better off purchasing a basic C/C++ programming book from Borders or B&N. You also might want to look at the comp.lang.c newsgroup.

A header file is a place where you put common structures, manifest
constants ("#defines"), etc. Then you can #include the header file
in your .c files so that you don't have to duplicate those definitions
in each .c file itself.

Really, it's that basic.
-- 
Scott Michel, Ph.D.                   | No research proposal ever survives
UCLA Computer Science                 |    contact with implementation.
                                      | !!  Futuaris nisi irrisus ridebis  !!