I have just started learning cpp and one thing that is really confusing me is #include <iostream>
or #include<vector>
. Some people say that we are including iostream library and some say that #include
is used for including header files. But iostream
and vector
don't have .h
extension so how can they be header files? Also, can we include a library by using #include
? This also makes me think about difference between iostream.h
and iostream
. Which one is header file? Which one is library? If we are only including header files then why don't we write #include<vector.h>
?
What does the standard cpp library contain? Smaller libraries like containers library , utilities library?
I tried looking on cppreference but couldn't understand