单选题
下列 C++ 流的操作符中,能够设置浮点数精度的是
A、
setprecision
B、
setw
C、
setfill
D、
showpoint
【正确答案】
A
【答案解析】
解析:本题考查浮点型数据输出精度,setprecision用来设置浮点精度,A选项正确。
提交答案
关闭