5,321
edits
(→Usage) |
(→Syntax) |
||
Line 27: | Line 27: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====Headers=== | |||
[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> | |||
The C-style header will place everything in the global namespace while the C++ header will place everything in <code>std</code>.<br> | |||
You should use <code>cmath</code>. | |||
====Lambda Expressions==== | ====Lambda Expressions==== | ||
[https://en.cppreference.com/w/cpp/language/lambda Reference] | [https://en.cppreference.com/w/cpp/language/lambda Reference] |