io/manipulators-2.cc - Illustration of more manipulators. | Lecture 3 - slide 21 : 27 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; }