0

What is the Difference between header files like cmath cstdlib and math.h stdlib.h

and which header file should i use to access rand()

23rd Jan 2019, 12:58 PM
Teddy
Teddy - avatar
3 ответов
+ 1
They are the exact same. Those libraries are from C which is why in C++ they have allowed to include them as cmath instead of math.h, for example. rand () is in cstdlib.
23rd Jan 2019, 2:08 PM
Zeke Williams
Zeke Williams - avatar
+ 1
Usually the <tab> right header quadrant is good but i would defo say they are all equally good.
23rd Jan 2019, 1:34 PM
The beef guy
The beef guy - avatar
0
thanks guys.....
23rd Jan 2019, 2:10 PM
Teddy
Teddy - avatar