//will arrayBuf array element base 2 extraction and rearranging
//if 0,1,2,3,4,5,6,7 switch sequence at 8 o 'clock after became a 0,4,2,6,1,5,3,7
Int t1, t2;
For (r=1; Pow (2 r) & lt; n; R++) {
T1=pow (2 r);
T2=pow (2, r - 1);
for(k=0; K
Buf2 [k * n/a t1 + I]. Imag=buf1 [k/2 * n/t2 + I * 2 + % 2 k]. Imag;
}
}
Memcpy (buf1 and buf2, sizeof (ComplexNumber) * n);
}
Error:
, visual studio 2008, chapter10 & amp; 11 & amp; 12 \ demo \ fouriertrans CPP (191) : error C2668: "pow" : the overloaded function call is not explicit
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (575) : it could be "long double pow (long double, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (527) : or "float pow (float, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (489), or "double pow (double, int)"
1> Attempts to match parameter list "(int, int)" when
1> D: \ visual studio 2008 \ chapter10 & amp; 11 & amp; 12 \ demo \ fouriertrans CPP (192) : error C2668: "pow" : the overloaded function call is not explicit
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (575) : it could be "long double pow (long double, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (527) : or "float pow (float, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (489), or "double pow (double, int)"
1> Attempts to match parameter list "(int, int)" when
1> D: \ visual studio 2008 \ chapter10 & amp; 11 & amp; 12 \ demo \ fouriertrans CPP (193) : error C2668: "pow" : the overloaded function call is not explicit
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (575) : it could be "long double pow (long double, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (527) : or "float pow (float, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (489), or "double pow (double, int)"
1> Attempts to match parameter list "(int, int)" when
1> D: \ visual studio 2008 \ chapter10 & amp; 11 & amp; 12 \ demo \ fouriertrans CPP (207) : error C2668: "pow" : the overloaded function call is not explicit
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (575) : it could be "long double pow (long double, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (527) : or "float pow (float, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (489), or "double pow (double, int)"
1> Attempts to match parameter list "(int, int)" when
1> D: \ visual studio 2008 \ chapter10 & amp; 11 & amp; 12 \ demo \ fouriertrans CPP (208) : error C2668: "pow" : the overloaded function call is not explicit
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (575) : it could be "long double pow (long double, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (527) : or "float pow (float, int)"
1> C: \ program files \ Microsoft visual studio vc 9.0 \ \ include \ math h (489), or "double pow (double, int)"
1> Attempts to match parameter list "(int, int)" when
CodePudding user response:
Pow has multiple functions, unknown clear match which one, you must explicitly use which data type to calculate,For example: pow ((double) 2, 2)