By default, iostream objects are set to display floating point values in fixed notation. To change this, you apply the 'scientific' manipulator to an output stream object:
#include <iostream>
using namespace std;
int main()
{
double f = 0.1;
cout<<f<<endl; // fixed notation by default; display 0.1
cout<<scientific<<f<<endl; // display 1.0000e-1
cout<<fixed<<f<<endl; // fixed point again; display 0.1000
}