That Many Header Files???? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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
Jack Diep
Jack Diep - avatar
1 Antwort
+ 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