im curious if there is any type of standard....or if anyone could help explain what all should be placed in .H files? (prototypes/etc) -thx
lochnessmonster
0
Junior Poster
Recommended Answers
Jump to Postanything except executable code/functions. There is no standard that says what you can and can not put in heder files -- its just common sense.
Jump to PostThe .H (header) file is more of a code organisation means to make your code readable and easily maintained. Logically, declarations and definitions are placed in the header file to allow an easy glance over the codes. All implementation codes shall go to the CPP file (with same corresponding name)
All 8 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
chiwawa10
77
Junior Poster
fmadsen
0
Newbie Poster
Hayzam_#include
-3
Newbie Poster
Tellalca
19
Posting Whiz in Training
gerard4143
371
Nearly a Posting Maven
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.