www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - header files

↑ ↓ ← asdf <asdf_member pathlink.com> writes:
could someone explain, in detail what header files do?
Jun 11 2004
↑ ↓ → Scott Michel <scottm mordred.cs.ucla.edu> writes:
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