Getting this error ??
If want to use rand() or srand() function in your program and are unable to include <cstdlib.h> header file because the file is not in your include folder , than try to include <stdlib.h> in your program and it should work.
Thanks
Which compiler is this? To be precise, C++ does not have a "cstdlib.h", it only has "cstdlib" (without .h).
ReplyDeletestdlib.h is C not C++.
Example code: http://codepad.org/lohUtLIJ