Mail Archives: djgpp/1996/06/13/23:01:45
| Xref: | news2.mv.net comp.os.msdos.djgpp:4946
|
| From: | fisher AT bu DOT edu (Paul Fisher)
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | c++ manipulator bugs
|
| Date: | 13 Jun 1996 20:21:56 GMT
|
| Organization: | Boston University
|
| Lines: | 30
|
| Message-ID: | <4ppt94$kh1@news.bu.edu>
|
| NNTP-Posting-Host: | amazon.bu.edu
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I've been getting some wierd results using the c++ manipulators
and I/O fields. Can anyone shed some light on this:
1. The ios::hex flag has no effect on output whatsoever
e.g. cout.setf(ios::hex)
However, ios::scientific works as it should
2. The hex manipulator affects all future outputs
e.g. cout<<hex<<var
while the set(w) manipulator only affects the next output.
This behavior just seems strangely inconsistent.
Does anyone have a solution, or at least a list of what is applicable when?
Thanks much.
--Paul
(please email reply)
--
Paul Fisher
fisher AT ltpmail DOT gsfc DOT nasa DOT gov
- Raw text -