Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!wuarchive!csus.edu!ucdavis!csusac!usenet From: helmke@babbage.csus.edu (Michael Helmke) Newsgroups: comp.lang.c++ Subject: Possible Turbo C++ stream I/O bugs Message-ID: <1991Mar3.002323.19068@csusac.csus.edu> Date: 3 Mar 91 00:23:23 GMT Sender: usenet@csusac.csus.edu (News account (alt)) Distribution: usa Organization: California State University, Sacramento Lines: 27 I have encountered the following problem in Turbo C++ 1.00 #include #include void main(void) { int value; cin >> hex >> value; } if the above is run with a watch window attached to value, I can read in "pseudo" hex numbers. 7f becomes 75, 7e becomes 74, etc. the rule seems to be, if a letter a..f is encountered during hex conversion, convert it to 0..5. This is hardly useful... Has anyone else run into problems like this? I have had some other more difficult to describe problems with the stream library and am beginning to suspect it has many bugs in it. Any solutions, patches, or official and unofficial bug lists would be greatly appreciated... thanks in advance. Michael Helmke. helmke@babbage.ecs.csus.edu