C++一闪而过的程序结果,加了GETCHAR了
#include<iostream>#include<math.h>usingnamespacestd;doublemax(doublex,doubley);intmai...
#include<iostream>
#include<math.h>
using namespace std;
double max (double x,double y);
int main ( )
{double a,b,c;
cout<<"\a please input the two number:\n";
cin>>a>>b;
c=max(a,b);
cout<<" the squart of maxinum="<<sqrt(c);
getchar( );
return 0;
}
double max (double x,double y)
{if(x>y)
return x;
else
return y;
}
为什么啊 展开
#include<math.h>
using namespace std;
double max (double x,double y);
int main ( )
{double a,b,c;
cout<<"\a please input the two number:\n";
cin>>a>>b;
c=max(a,b);
cout<<" the squart of maxinum="<<sqrt(c);
getchar( );
return 0;
}
double max (double x,double y)
{if(x>y)
return x;
else
return y;
}
为什么啊 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询