1>c:\users\86135\documents\visual studio 2010\projects\3\3\00.cpp(29): error C2668: “pow”: 对重载函数的调用不明确
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(583): 可能是“long double pow(long double,int)”
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(535): 或 “float pow(float,int)”
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(497): 或 “double pow(double,int)”
1> 尝试匹配参数列表“(int, int)”时
for (int h, i = 0; x > 0; i++)
{
h = x % 10;
x = x / 10;
t = t + h * pow(8, i);
}
不知道你这个问题是否已经解决, 如果还没有解决的话: