语句cout<<setprecision(2)<<1024.4567;的输出结果为

admin2010-03-29  19

问题 语句cout<<setprecision(2)<<1024.4567;的输出结果为

选项 A、1024.4567
B、1024
C、1024.45
D、le+003

答案8

解析 setprecision( )函数为设置小数位数。注意:C++中I/O流各种函数的使用例如: setw( ),setfill( )。
转载请注明原文地址:https://kaotiyun.com/show/xVjp777K
0

最新回复(0)