Sign in to follow this  

.h files

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I have a huge program and I want to place some of the functions in a header file im new to C++ so im not sure how to do that? Whats the deal with having .h files and .cpp what goes in what? Man C++ confuses me! lol Thanx ppl for the help!!!

Share this post


Link to post
Share on other sites
here's an article:

http://www.gamedev.net/reference/articles/article1228.asp

the specifics of how to get it to actually compile depend entirely on what tool you are using to compile your programs. make, VC++(6.0 or .NET or whatever), DEVC++, etc; all have different ways to actually let the program know how to compile everything.

but the article should give you at least the basics of how to write the files. getting them to build can be your next question, after you've written the files :)

-me

Share this post


Link to post
Share on other sites

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this