求解,我错在哪里
#include <iostream>
using namespace std;
#include <cmath>
double sh(double x)
{
double i,j,k;
i=exp(x);
j=exp(-x);
k=(i-j)/2;
return k;
}
double function(double x)
{
double sh(double x);
double j,k,t,l,y;
j=sh(x);
k=sh(1+j);
t=sh(2*x);
l=sh(3*x);
y=k/(t+l);
return y;
}
double sh(double x);
double function(double x);
main()
{
int n,m;
printf("please input a number:\n");
scanf("%lf",n);
m=function(n);
printf("%lf",m);
}
求解,我错在哪里,谢谢