程序哪出错了?忘高手指点~
#include <iostream>void initialize_screen();
double ca(double fa);
void show_results(double c, double f);
int main()
{
using namespace std;
double c1, f1;
initialize_screen();
cout << "Please enter f1:" << endl;
cin >> f1;
c1 = ca(f1);
show_results(c1, f1);
return 0;
}
void initialize()
{
using namespace std;
cout << endl;
return;
}
double ca(double fa)
{
using namespace std;
return((5.0/9.0)*(fa - 32));
}
void show_results(double c, double f)
{
using namespace std;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(1);
cout << "f is :" << f << endl
<< "c is :" << c << endl;
return;
}