Please can you explain very clearly what header files and libraries are?
C++ Headers, libraries, oh so hard to understand?
Header files are those .h files that you use to include variables and function definitions (and at times code.) For example,
#include %26lt;stdio.h%26gt;
tells the compiler to "include" the stdio.h file into the source upon compilation.
A library is typically a collection of object files, functions if you will, to perform some functionality. For example, you may have an SQL library that you link with your program which includes all the functions necessary to connect to and interact with a database.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment