c++输出保留固定小数位数

cout<<setprecision(6)<<fixed<<ans<<endl;

posted @ 2017-02-04 22:55  simple_wxl  阅读(1457)  评论(0)    收藏  举报