Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:G++里难道用%f输出double才是正确的?

Posted by hkrcn at 2010-05-12 16:28:26 on Problem 3164
In Reply To:Re:G++里难道用%f输出double才是正确的? Posted by:resty at 2009-06-24 20:53:21
根据标准,double需要使用%lf读入,%f输出。%lf输出是非C标准里的内容,VC扩展出来的,使用了当然不能保证正确性。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator