5,337
edits
(→Main) |
|||
Line 33: | Line 33: | ||
====Headers==== | ====Headers==== | ||
[https://stackoverflow.com/questions/10694255/cmath-vs-math-h-and-similar-c-prefixed-vs-h-extension-headers Reference] | [https://stackoverflow.com/questions/10694255/cmath-vs-math-h-and-similar-c-prefixed-vs-h-extension-headers Reference] | ||
C++ includes C-headers such as <code>math.h</code> and <code>cmath</code>.<br> | C++ includes C-headers such as <code>math.h</code> and <code>cmath</code>.<br> | ||
The C-style header will place everything in the global namespace while the C++ header will place everything in <code>std</code>.<br> | The C-style header will place everything in the global namespace while the C++ header will place everything in <code>std</code>.<br> |