单选题 语句cout<<setprecision(2)<<1024.4567;的输出结果为
【正确答案】 D
【答案解析】[解析] setprecision( )函数的考查。
[解题要点] setprecision( )函数为设置小数位数。
[考点链接] C++中I/O流各种函数的使用例如: setw( ),setfill( )。