+ 1

C++ #include libraries

Could someone explain to me how to know when to use certain #include statements. I understand that they contain certain commands but when is it better to use one over another?

24th Feb 2018, 1:48 AM
Alejo95
1 Answer
+ 8
One is not necessarily better than the other. It is a matter of including a header when you need to use its contents. http://en.cppreference.com/w/cpp/header
24th Feb 2018, 2:11 AM
Hatsy Rei
Hatsy Rei - avatar