¿Hay alguna manera de configurar el manipulador std::setw (o su función width) de forma permanente? Mira esto: #include <iostream>
#include <iomanip>
#include <algorithm>
#include <iterator>
int
Recientemente fui mordido por el hecho de que ios_base::width y/o el manipulador setw tienen que ser reset with every item written to the stream. Es decir, usted debe hacer esto: while(whatever)
{