Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
C语言标准规定就是double用%f输出,只是一般的编译器也都允许用%lf进行输出。In Reply To:Re:注意G++输出浮点数需要用%f, 而不是%lf Posted by:fyq at 2011-01-01 12:52:56 因此一般来说%lf也能混过去,但如果要求比较严格,%lf就挂了。坚持使用%f绝对是个好习惯 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator