I am using Visual C++ 2005 to write code a win32 console application.
There was an error message about the power function when I compiled the code. It is: error c2668: 'pow' :ambiguous call to overloaded function.
The statement is:
tempDistance += pow((data[selectedInstance][k]-data[j][k]),2);
I used various headers like:
, and but the error message remained the same.
What is the cause of the error? I've checked the syntax and it seems correct.
2006-07-19
06:49:49
·
5 answers
·
asked by
ZhiYi
1
in
Computers & Internet
➔ Programming & Design