-1
I have a question about the C++ libraries that are hammering me in time.
Is it really necessary to import for example the Math. h library to use functions like Pow and sqrt? or the locale library. h to use setlocale(LC_ALL,"");?
because today I ended up testing it regardless and it worked the same way, I wonder if it is right to use the functions without caring them and if it causes some "damage" in the program.
From now on, thank you!
Yes. It is necessary. And missing something will receive the notice of Missing Ference by LINK and not via generate your program. However many times a #include you use already includes another one you used so it may seem superfluous. If you use a function of b,h and include a.h which incidentally includes b.h you can dispense with the
#include "b.h"
– arfneto