+ 2
How to use Maths functions in C++?
4 odpowiedzi
+ 13
using Math class by including-
#include<math.h>
Use functions like Math.abs(), Math.sqrt(), Math.sin() etc.
+ 13
Actually, I got confused with programming languages. But you are right that prefix Math. is invalid but <math.h> and <cmath> both have same functions.
reference-
http://www.cplusplus.com/reference/cmath/
0
palindrome using string function