标题:程序哪出错了?忘高手指点~
取消只看楼主
jack333fly
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2010-7-15
结帖率:83.33%
已结贴  问题点数:10 回复次数:0 
程序哪出错了?忘高手指点~
#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;
}
2010-07-19 00:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-313372-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.127707 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved