| Illustration of more manipulators. | Lecture 2 - slide 36 : 42 Program 1 |
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main(){
double d = 3.12345678;
cout << d << endl
<< scientific << d << endl
<< fixed
<< setprecision(10) << setfill('#') << setw(18)
<< d << endl;
}