Re: The use of a header file
From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: 04/08/04
- Next message: Francis Glassborow: "Re: memory types?"
- Previous message: Francis Glassborow: "Re: Return char/string array"
- In reply to: Cerf: "The use of a header file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 8 Apr 2004 09:40:54 +0100
In message <9D1dc.12088$JTG1.9280@news04.bloor.is.net.cable.rogers.com>,
Cerf <dark_temp@hotmail.com> writes
>Yo yo yo
>
>Just like the extern keyword, I want to varify the use of a header file.
>
>>From what I have learned, a header file will contain a struct and there will
>be a corrisponding .cpp file with all the functions used in that header
>file. Right?
Idiomatically a header file will contain the definition of a struct
(more usually a class in C++) and its implementation will be in a
separate .cpp file. A class/struct defintion consists primarily of
declarations of its members. The implementation file consists of the
definitions of the member functions (the defintions of data members are
provided by calling a constructor).
-- Francis Glassborow ACCU Author of 'You Can Do It!' see http://www.spellen.org/youcandoit For project ideas and contributions: http://www.spellen.org/youcandoit/projects
- Next message: Francis Glassborow: "Re: memory types?"
- Previous message: Francis Glassborow: "Re: Return char/string array"
- In reply to: Cerf: "The use of a header file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|