C++出现unexpected end of file found是怎么回事
#include<iostream>#include<cmath>usingnamespacestd;intsroot(inti){returnsqrt(i);}long...
#include<iostream>
#include<cmath>
using namespace std;
int sroot(int i)
{return sqrt(i);}
long sroot(long l)
{return sqrt(l);}
double sroot(double d)
{return sqrt(d);}
int main()
{
int i,x;
long l,y;
double d,z;
cin>>i;
cin>>l;
cin>>d;
{x=sroot(i);
y=sroot(l);
z=sroot(d);
cout<<x<<"\t"<<y<<"\t"<<z<<endl;
return 0;
} 展开
#include<cmath>
using namespace std;
int sroot(int i)
{return sqrt(i);}
long sroot(long l)
{return sqrt(l);}
double sroot(double d)
{return sqrt(d);}
int main()
{
int i,x;
long l,y;
double d,z;
cin>>i;
cin>>l;
cin>>d;
{x=sroot(i);
y=sroot(l);
z=sroot(d);
cout<<x<<"\t"<<y<<"\t"<<z<<endl;
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询