找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 1607|回复: 5

一个关与输入的问题

[复制链接]
发表于 2009-11-2 04:37:36 | 显示全部楼层 |阅读模式 IP:江苏扬州
input terminated by end of file 这个怎么实现?? 请个为大虾指教!
发表于 2009-11-2 04:37:44 | 显示全部楼层 IP:江苏扬州
用abort()函数退出,要含<cstdlib>,不知道对楼住来说有没有用
回复

使用道具 举报

发表于 2009-11-2 04:37:48 | 显示全部楼层 IP:江苏扬州
EOF判断文件尾
回复

使用道具 举报

发表于 2009-11-2 04:37:53 | 显示全部楼层 IP:江苏扬州
abort()和RUTURN 0有什么区别????
回复

使用道具 举报

发表于 2009-11-2 04:38:00 | 显示全部楼层 IP:江苏扬州
不知道是我对题目有什么误解,虽然做出来了,但总是提交不成功,不知道哪里出问题了,各位高手能不能帮我看看,感激涕流!!!!
    题目如下

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
回复

使用道具 举报

发表于 2009-11-2 04:38:05 | 显示全部楼层 IP:江苏扬州
 题目的意思就是输入三个点坐标,求由这三个点组成的三角形的外接圆的周长.
希望各位能给点意见.万分感激!!!!!!!!!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 01:29 , Processed in 0.176108 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表