c++程序 error C2059: syntax error : ')' 执行 cl.exe 时出错.求大佬教教错在哪!!谢谢
#include<iostream>#include<math.h>#definep3.1415;usingnamespacestd;intmain(){doublet,...
#include<iostream>
#include<math.h>
#define p 3.1415;
using namespace std;
int main()
{double t,M=6e+24,R=6.371e+6,G=6.67e-11,h;
cin>>t;
t=pow (t/(2*p),2);
t=t*M*G;
h=pow(t ,1/3);
h=h-R;
cout<<"gao shi:"<<h;
return 0;} 展开
#include<math.h>
#define p 3.1415;
using namespace std;
int main()
{double t,M=6e+24,R=6.371e+6,G=6.67e-11,h;
cin>>t;
t=pow (t/(2*p),2);
t=t*M*G;
h=pow(t ,1/3);
h=h-R;
cout<<"gao shi:"<<h;
return 0;} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询