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.
Is it true that IDE/compilers will automatically include some things?
If yes, is there a compiler for windows that won't?
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++