Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Eelco

general knowlegde

This topic is 5654 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

hi all, i dont come here asking a stupid question like ''how do i declare a class'', or anything in that range, so dont flame me. yet i have a bit of a knowlegde-gap witch doesnt seem to be filled by all the tutorials i can find around the web. after reading those i have a pretty basic understanding of the c++ syntax, and i would like to start doing something in c++. but i can never find any explainations about other things than syntax. whats the exact difference between a .cpp and a .h? whats the ddifference between a .lib, .dll or .cpp include? such general questions about programming are answered nowhere afaik. i dont expect you to explain these questions, cos they are just an example, but where can i find answers to such general questions? (concrete links plz, ive tried google already..) thanks

Share this post


Link to post
Share on other sites
Advertisement
That''s the kind of thing that would be covered in the first chapter of a C++ book. You will save time if you start with a good book; it''s easier than finding out what to put into Google to get an answer.

Simple answers to your questions:

.h: here you declare things.
.cpp: here you put the implementation of things.

In more detail, a .h declares an interface which other code can use without having to know the details of the .cpp. You #include a header file, and anything declared in it is available wherever you include it.

A lib/dll (library) exposes some functionality that your program can use. This is already compiled; it''s like a program, but it doesn''t run - it''s bits of programs that can plug into another.
A cpp file is raw code that would get compiled into a program.

Share this post


Link to post
Share on other sites
thank you for your answer HG,

i already was a bit affraid i had to resort to books... hopefully i can find some decent ones in the library.

still its a bit of a shame that such informations isnt included in the one gig helpfile that comes with ms vs.net

anyway, thanks again

Share this post


Link to post
Share on other sites
Theres loads of free C++ books about - a good one being Bruce Eckels "Thinking In C++" volumes 1 and 2. You would probably be interested in reading through volume 1 as this should answer soem of your questions - www.mindview.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!