-
问题描述
From C++ references, is a
library, but others areheaders. What’s the difference between them. -
Difference between Header file and Library
-
Header files
The files that tell the compiler how to call some functionality (without knowing how the functionality actually works) are called header files. They contain the function prototypes. They also contain data types and constants used with the libraries.
We use
#includeto use these header files in programs.These files end with
.hextension. -
Library
Library is the place where the actual functionality is implemented i.e. they contain function body. Libraries have mainly two catefories:

最低0.47元/天 解锁文章
638

被折叠的 条评论
为什么被折叠?



