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 |
Re:为什么用double就错了,float对了。。。。。。。。。求解In Reply To:为什么用double就错了,float对了。。。。。。。。。求解 Posted by:a7884594 at 2014-05-28 20:49:00 其实double也是可以的,我猜你错在scanf(“%f”,&f);如果是double应该改成%lf,printf同理 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator