a=sqrf(154) 'sqrf' was not declared in this scope

I am learning C++ and Im learning it from youtube and books and this one guy is trying to use the sqrf command just like it showd here his runs right so why doesnt mine?

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <cmath>
int main()
{
	using namespace std;
	double a;
	a = sqrf(154);
	cout << a;
return 0;
}
	
	
Because there is no function called sqrt.

http://en.cppreference.com/w/c/numeric/math/sqrt

Either you mean sqrt, sqrtf or sqrtl.
Thank you for your help I didnt think something so small could effect coding xp
Topic archived. No new replies allowed.