c++ - header files
- asdf (1/1) Jun 11 2004 could someone explain, in detail what header files do?
- Scott Michel (13/14) Jun 12 2004 Ok, I'll bite -- although this is such a basic question, you're a lot
could someone explain, in detail what header files do?
Jun 11 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 !!
Jun 12 2004