请教各位,这个程序为什么编译出错?
broom 2005-01-24 11:28:17 #include<iostream>
#include<cmath>
using namespace std;
double hypot(double s1,double s2);
int main()
{
cout<<hypot(3.0,4.0)<<'\n';
return 0;
}
double hypot(double s1,double s2)
{
return sqrt((s1*s1)+(s2*s2));
}