home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11806 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.2 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!swrinde!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!iies.ecn.purdue.edu!psmith
  2. From: psmith@iies.ecn.purdue.edu (Paul Smith)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Bizarre Borland stream bug
  5. Message-ID: <1992Jul30.193832.2535@noose.ecn.purdue.edu>
  6. Date: 30 Jul 92 19:38:32 GMT
  7. References: <1992Jul30.185327.662@news2.cis.umn.edu>
  8. Sender: news@noose.ecn.purdue.edu (USENET news)
  9. Organization: Purdue University Engineering Computer Network
  10. Lines: 33
  11.  
  12. In article <1992Jul30.185327.662@news2.cis.umn.edu> wright@epx.cis.umn.edu (Mark Wright) writes:
  13. >/*
  14. >FILE 1:
  15. >0001    111111.1111     111111.1111
  16. >0009    222222.2222     222222.2222
  17. >PROGRAM OUTPUT:
  18. >1: 111111.1111, 111111.1111
  19. >0: 9, 222222.2222
  20. >FILE 2:
  21. >0009    222222.2222     222222.2222
  22. >0001    111111.1111     111111.1111
  23. >PROGRAM OUTPUT:
  24. >0: 9, 222222.2222
  25. >25614: 0.2222, 1
  26. >-19961: 0.1111, 111111.1111
  27. >*/
  28.  
  29. Looks kinda like it is reading 0009 as an octal constant because of 
  30. the leading zeros, except that 9 isn't a valid octal digit so it gets 
  31. bumped to the next read.
  32.  
  33. Is this correct behavior?  I dunno.
  34.  
  35. -Paul
  36. //
  37. // Paul F. Smith - ADPC - Purdue University
  38. // psmith@ecn.purdue.edu or pfsmith@adpc.purdue.edu
  39. //
  40.