home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13346 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1018 b   |  40 lines

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!usc!sol.ctr.columbia.edu!eff!snorkelwacker.mit.edu!world!rr
  2. From: rr@world.std.com (Robert I Ransbottom)
  3. Newsgroups: comp.lang.c++
  4. Subject: setiosflags(ios::fixed)<<MINDOUBLE
  5. Summary: dumps core
  6. Keywords: cfront 3.0,  SysVr3.2
  7. Message-ID: <Bu4sJ4.Bzt@world.std.com>
  8. Date: 6 Sep 92 00:40:15 GMT
  9. Sender: rr@world.std.com
  10. Followup-To: comp.lang.c++
  11. Distribution: usa
  12. Organization: The World Public Access UNIX, Brookline, MA
  13. Lines: 25
  14.  
  15. // This neophyte thinks "Not me, I didn't do it!"
  16.  
  17. // weedie.C 
  18.  
  19. #include <values.h>
  20. #include <iostream.h>
  21. #include <iomanip.h
  22.  
  23. main()
  24. {
  25.     cout << MINDOUBLE << endl;
  26.     cout << setiosflags(ios::fixed) <<  MINDOUBLE + .00000001 << endl;
  27.     cout << MINDOUBLE << endl;
  28. }
  29. //:r! ( CC t.C && a.out) 2>&1
  30. //CC +OL weedie.C:
  31. //   cc     weedie.c -lC30
  32. //4.94066e-324
  33. //0.000000
  34. //sh: 16333 Bus error - core dumped
  35.  
  36. -- 
  37. rr@world.std.com  Robert Ransbottom
  38.  
  39. "Maintaining correct attributions is extremely important." -- anonymous
  40.