S
suresh
Hi
I display a vector using copy algorithm like this.
copy(v.begin(),v.end(),ostream_iterator<int>(cout," ");
suppose i want to set the width or the fill character, what can i do?
Of course I can use a for loop instead of copy algorithm but my
question is, while using copy algorithm, is it possible to format
output?
thanks
suresh
I display a vector using copy algorithm like this.
copy(v.begin(),v.end(),ostream_iterator<int>(cout," ");
suppose i want to set the width or the fill character, what can i do?
Of course I can use a for loop instead of copy algorithm but my
question is, while using copy algorithm, is it possible to format
output?
thanks
suresh