精度确定

cout<<fixed<<setprecision(2)<<average<<endl;

fixed不能少

posted @ 2011-03-28 18:57  SangS  阅读(137)  评论(0编辑  收藏  举报