简单问题
#include<iostream>using namespace std;
double wendu();
int main()
{
cout<<"Please enter a Celsius value:";
double abc;
cin>>abc;
double h;
h=wendu(abc);
cout<<abc<<"degrees Celisus is="
<<h<<"degrees Fahrenheit\n";
return 0;
}
double wendu(double temp)
{
return 1.8*temp+20;
}
为什么不能调用呢?错在哪?