cout<<fixed表示按一般方式输出浮点数

int main()
{
     double num=0.00001;
     cout<<num<<endl;
     cout<<fixed;
     cout<<num;
     return 0;
}

第一次输出的是1e-5

第二次为0.00001;

原文地址:https://www.cnblogs.com/Fy1999/p/8994677.html