-
<math> and <cmath>
Is there a difference between <math> and <cmath>?
Thanks
-
Yes.
The latter is a C++ header file for accessing the functions in the mathematics library.
The former does not exist.
-
Deathray Engineer
-
Assuming the OP meant to compare <math.h> and <cmath>, the thread below talks about the difference between <xxxx.h> and <cxxxx>. Basically, in C++ you should use the latter version and qualify the appropriate symbols with std::.
http://cboard.cprogramming.com/showthread.php?t=86711
Popular pages
Recent additions