没注释的源代码
#include <iostream>
#include<cmath>
using namespace std;
double e(double x);
int main()
{
double x,sinh;
cout<<"请输入x:";
cin>>x;
sinh=(e(x)+e(-x))/2;
cout<<"sinh("<<x<<")="<<sinh;
return 0;
}
double e(double x)
{
return exp(x);
}