cout.setf(ios::fixed); 有什么作用?cout.setf(ios::fixed);cout

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 19:51:01
cout.setf(ios::fixed); 有什么作用?cout.setf(ios::fixed);cout

cout.setf(ios::fixed); 有什么作用?cout.setf(ios::fixed);cout
cout.setf(ios::fixed); 有什么作用?
cout.setf(ios::fixed);
cout

cout.setf(ios::fixed); 有什么作用?cout.setf(ios::fixed);cout
setf()是追加标志字的函数,而flags()是设置标志字
fixed标志是以定点形式显示浮点数
试试这段代码你就知道了
#include
#include
void main(void)
{
cout.setf(ios::fixed);
cout