The fill manipulator once set, now to unset it...?
#include <iostream>
#include <iomanip>
using namespace std;
int main () {
double i=1.23456789;
cout<<setfill('*')<<setw(25)<<i<<endl; //line 1
cout<<setw(35)<<i<<endl; //line 2
cout<<setw(30)<<i<<endl; //line 3
return 0;
}
If I want that fill effect should not be reflected in line 2 & 3, how to remove the effect??
I think the fill is not something you deactivate. I think you just set it to its previous value, which I presume is a space.