Re: The use of a header file
From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: Thu, 8 Apr 2004 09:40:54 +0100
In message <9D1dc.12088$JTG1.firstname.lastname@example.org>,
Cerf <email@example.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
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