Search:
Forum
Beginners
difference between math and math.h
difference between math and math.h
Nov 2, 2012 at 7:37pm UTC
msdagiya
(26)
What is the difference between math and math.h. I check some compilers use and .h extension and others don't. How do we know when to use what?
Nov 2, 2012 at 9:03pm UTC
Moschops
(5981)
math.h
is a C header.
math
is something I've never heard of in this context.
cmath
is a C++ header that contains the same functions as math.h, and some extra ones, but written in C++ where appropriate and all inside the std namespace.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs