The relationship between library files and header files can be confusing for any young budding programmer and to resolve this problem, I thought of posting a simple article of what I have learnt about them .say for example ceil(), it is a function that needs to be linked to a library file to your program using the linker. The function that is present in the source code which you typed must match with the exact name, arguments and return type with the function present in the library file. The relation between these both is as follows – the various functions that we use in our source program are grouped together to form the library file and the exact definition and information about these files lie in the header files only. The header files are a must in c++ and hence you must make sure that you include the correct header file for operation that you are going to do, then only the information about the function that you want will be included in the program.
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment