home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!usc!sol.ctr.columbia.edu!eff!snorkelwacker.mit.edu!world!rr
- From: rr@world.std.com (Robert I Ransbottom)
- Newsgroups: comp.lang.c++
- Subject: setiosflags(ios::fixed)<<MINDOUBLE
- Summary: dumps core
- Keywords: cfront 3.0, SysVr3.2
- Message-ID: <Bu4sJ4.Bzt@world.std.com>
- Date: 6 Sep 92 00:40:15 GMT
- Sender: rr@world.std.com
- Followup-To: comp.lang.c++
- Distribution: usa
- Organization: The World Public Access UNIX, Brookline, MA
- Lines: 25
-
- // This neophyte thinks "Not me, I didn't do it!"
-
- // weedie.C
-
- #include <values.h>
- #include <iostream.h>
- #include <iomanip.h
-
- main()
- {
- cout << MINDOUBLE << endl;
- cout << setiosflags(ios::fixed) << MINDOUBLE + .00000001 << endl;
- cout << MINDOUBLE << endl;
- }
- //:r! ( CC t.C && a.out) 2>&1
- //CC +OL weedie.C:
- // cc weedie.c -lC30
- //4.94066e-324
- //0.000000
- //sh: 16333 Bus error - core dumped
-
- --
- rr@world.std.com Robert Ransbottom
-
- "Maintaining correct attributions is extremely important." -- anonymous
-