第1个回答 2011-02-16
库文件:是C++已经封装好的一些基本算法功能。你只需引入相应库文件的头文件,调用库文件的函数接口就可以实现相应的功能。这就像你引入iostream.h这个头文件,就可以调用其标准库std下的cout函数进行输出一样。
头文件:你调用库文件里的函数就的调入相应的头文件(虽然标准C++里取消了.h,多了using namespace).而且头文件你也可以自己定义。
第2个回答 2011-02-15
个人认为头文件就是库提供给用户的接口,用户通过调用头文件里声明的函数接口,进而调用库
第3个回答 2012-08-01
库文件通过头文件向外导出接口。用户通过头文件找到库文件中
函数实现的代码从而把这段代码链接到用户程序中去。
第4个回答 2011-02-16
Most header files contain the declarations of the classes or the functions, and the library files are the implements of the class and functions. You include the header files and link the library files to make sure that your applications can be compiled and linked.