C++求解释谢谢
#include"iostream.h"#include"math.h"doublesin(doublex1,doublex2){returnx1*x2;}doubles...
#include"iostream.h"
#include"math.h"
double sin(double x1,double x2)
{ return x1*x2;}
double sin(double x,int a)
{ return a+x;}
void main( )
{ double x;
cin>>x;//输入2
cout<<sin(x,x)<<endl;
cout<<sin(x,10)<<endl;
}
怎么算的 展开
#include"math.h"
double sin(double x1,double x2)
{ return x1*x2;}
double sin(double x,int a)
{ return a+x;}
void main( )
{ double x;
cin>>x;//输入2
cout<<sin(x,x)<<endl;
cout<<sin(x,10)<<endl;
}
怎么算的 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询