| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 498 人关注过本帖
标题:一个关与输入的问题
只看楼主 加入收藏
MACHEAL
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-3-22
收藏
 问题点数:0 回复次数:5 
一个关与输入的问题
input terminated by end of file 这个怎么实现?? 请个为大虾指教!
搜索更多相关主题的帖子: 输入 
2006-03-25 18:52
giant
Rank: 1
等 级:新手上路
帖 子:180
专家分:0
注 册:2005-12-11
收藏
得分:0 

用abort()函数退出,要含<cstdlib>,不知道对楼住来说有没有用


2006-03-25 18:59
ElfDN
Rank: 4
等 级:贵宾
威 望:11
帖 子:291
专家分:0
注 册:2005-11-13
收藏
得分:0 
EOF判断文件尾

2006-03-25 19:15
MACHEAL
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-3-22
收藏
得分:0 
abort()和RUTURN 0有什么区别????
2006-03-25 22:32
MACHEAL
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-3-22
收藏
得分:0 
不知道是我对题目有什么误解,虽然做出来了,但总是提交不成功,不知道哪里出问题了,各位高手能不能帮我看看,感激涕流!!!!
    题目如下

To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't?

You are given the cartesian coordinates of three non-collinear points in the plane.
Your job is to calculate the circumference of the unique circle that intersects all three points.

Input Specification

The input file will contain one or more test cases. Each test case consists of one line containing six real numbers x1,y1, x2,y2,x3,y3, representing the coordinates of the three points. The diameter of the circle determined by the three points will never exceed a million. Input is terminated by end of file.

Output Specification

For each test case, print one line containing one real number telling the circumference of the circle determined by the three points. The circumference is to be printed accurately rounded to two decimals. The value of pi is approximately 3.141592653589793.

Sample Input

0.0 -0.5 0.5 0.0 0.0 0.5
0.0 0.0 0.0 1.0 1.0 1.0
5.0 5.0 5.0 7.0 4.0 6.0
0.0 0.0 -1.0 7.0 7.0 7.0
50.0 50.0 50.0 70.0 40.0 60.0
0.0 0.0 10.0 0.0 20.0 1.0
0.0 -500000.0 500000.0 0.0 0.0 500000.0

Sample Output

3.14
4.44
6.28
31.42
62.83
632.24
3141592.65





2006-03-25 22:54
MACHEAL
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-3-22
收藏
得分:0 
 题目的意思就是输入三个点坐标,求由这三个点组成的三角形的外接圆的周长.
希望各位能给点意见.万分感激!!!!!!!!!!!
2006-03-25 22:57
快速回复:一个关与输入的问题
数据加载中...
 
   



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

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