0

That Many Header Files????

I've only gone through "the rand() function course" in C++ and already three header files are brought up. Why so many? Why not just merge header files into one?

9th Sep 2018, 6:57 AM
Jay Trang
Jay Trang - avatar
1 Answer
+ 6
Because different headers serve different purposes, and importing all libraries when you only need a microscopic part of one library is inefficient. Just like how books have chapters and schools have different classes to facilitate learning, modules and libraries are structured to allow ease of use, while preserving performance.
9th Sep 2018, 7:21 AM
Hatsy Rei
Hatsy Rei - avatar