| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 417 人关注过本帖
标题:who can help me solve the problem?
取消只看楼主 加入收藏
无名小卒朱超
Rank: 1
等 级:新手上路
帖 子:8
专家分:1
注 册:2011-6-26
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:0 
who can help me solve the problem?
#include <stdio.h>
#define  KMS_PER_MILES  1.609
#include<conio.h>
  
int
main()
{
          double  miles, kms;
          FILE    *inp,
                  *outp;
         
          inp = fopen ("b:distance.txt" , "r");
          outp = fopen ("b:disout.txt" , "w");
         
          fscanf(inp, "%lf",&miles);
          fprintf(outp,"The distance in miles is %.2f.\n",miles);
         
          kms = KMS_PER_MILES * miles;
          fprintf(outp , "That equals %.2f kilometers.\n",kms);
         
          fclose(inp);
          fclose(outp);
         
          getch();
          getch();
          return (0);
          }
         
 这个程序那里错啦?为什么运行结果什么也没有?谢谢各位高手的指教。         
搜索更多相关主题的帖子: distance problem include double equals 
2011-07-15 15:27
快速回复:who can help me solve the problem?
数据加载中...
 
   



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

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