c++ 输出精度

          1  保留小数点后**位

         

              cout.flags(ios::fixed);  

              cout.precision(4); //设置输出精度,

posted @ 2018-03-16 11:05  deep-thinking  阅读(202)  评论(0编辑  收藏  举报