내가 가진 여러 입력 변수표현 POW 곱() 내 계산
M_s = 1.989 × 〖10〗^30
G = 6.67384 × 〖10〗^(- 11)
A = 1.496 × 〖10〗^내가 쓸 때 8
long double G = 6.67384 * (pow(10,-11));
같은 내가 얻을 t "G는 6.67384 동일 -11의 힘에 10를 곱"
c:\users\user\documents\visual studio 2010\projects\1.det.earth location in orbit\1.det.earth location in orbit\1.det.earth location in orbit.cpp(15): error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(583): could be 'long double pow(long double,int)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(535): or 'float pow(float,int)'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(497): or 'double pow(double,int)'
1> while trying to match the argument list '(int, int)'
이 어떻게 문을 표현할 수 있으며, 정확한 답변을 얻을 : 그는 메시지를 오류? 어떤 STL 라이브러리를 포함해야합니까?
긴 더블 G = 6.67384 전자 (11). –