cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how to turn off setfill()
how to turn off setfill()
Nov 30, 2009 at 11:52pm UTC
grcunning
(117)
I'm using the iomanip setfill() to format one field in my output to a file. The problem is that every field after the setfill() command also uses the same fill character '0'. How do I turn this off and then back on when I come back to that field?
Last edited on
Nov 30, 2009 at 11:52pm UTC
Dec 1, 2009 at 12:09am UTC
melkiy
(131)
maybe setfill space?
Dec 1, 2009 at 1:04am UTC
helios
(17574)
Either that or setw(0).
Dec 1, 2009 at 1:14am UTC
grcunning
(117)
setfill(' ') did it, thanks
Topic archived. No new replies allowed.