I have a c++ program that uses the rand function and the srand function.
It worked fine when I compiled it on my windows machine, but I got errors when trying to compile it on ubuntu linux.
After I included cstdlib the program worked fine on the linux too.
1.
Is it true that IDE/compilers will automatically include some things?
If yes, is there a compiler for windows that won't?
2.
Is every library that end with .h for C, not C++? (Like stdlib.h)
for example Wikipedia said stdlib.h is used for C and cstdlib for c++