Skip to main content
gamedev.net
🔒 Locked

Header file creation

Started by lone_ranger Jul 25, 2002 at 6:57 AM 1 replies 200+ views
Original Post
lone_ranger
lone_ranger
How can i create a header file?
Virtus junxit, mors non separabit
Like2Byte
Like2Byte
Well, header files are text files saved with a ''.h'' extension (ie: stdio.h) for the ''C'' or ''C++'' language (as I know them).

Place declarations, #defines and what not in them. Don''t place operational code in them with the exception of MACROS. Place instructions in your .C/C++ files. (.c/.cpp)

You can make your own but don''t expect them to look like those in stdio.h those are very complicated.

Other than this over simplified answer of mine, I''d say to buy a decent book on programming.

Advice, eh? Well, besides working on your swing...you know, besides that...I'd have to think.
Arild Fines
Arild Fines
quote:
Original post by Like2Byte
Well, header files are text files saved with a ''.h'' extension (ie: stdio.h) for the ''C'' or ''C++'' language (as I know them).


Or ''.hpp.'' or ''.hxx'' or ''.H'' or with no extension at all . Seriously though, the industry standard seems to be ''.h'', so you can just as well go with that.




"The churches used to win their arguments against atheism, agnosticism, and other burning issues by burning the ismists, which is fine proof that there is a devil but hardly evidence that there is a God."
Ben Lindsey and Wainwright Evans
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.