June 12, 2004 header files | ||||
---|---|---|---|---|
| ||||
could someone explain, in detail what header files do? |
June 13, 2004 Re: header files | ||||
---|---|---|---|---|
| ||||
Posted in reply to asdf | 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 !! |
Copyright © 1999-2021 by the D Language Foundation