Bug in EGCS?
Hi,
this small program doesn't seem to work properly with egcs. I was wondering if
this is a kwown bug/problem or if I am just doing something *very* stupid:
#include <iostream.h>
#include <iomanip.h>
main()
{
cout.fill(' ');
for(float i=0;i<10;i+=0.1)
cout << setprecision(2) << setw(5) << i << endl;
}
Output:
^@^@^@^@0
^@^@0.1
^@^@0.2
^@^@0.3
^@^@0.4
^@^@0.5
^@^@0.6
^@^@0.7
^@^@0.8
^@^@0.9
^@^@^@^@1
^@^@1.1
^@^@1.2
...
AFAIK, there should be no "^@" in the output but spaces.
This works OK. with the old
gcc.
Thanks,
Luis.
--
Luis Francisco Gonzalez <luisgh@cogs.susx.ac.uk>
PGP Fingerprint = F8 B1 13 DE 22 22 94 A1 14 BE 95 8E 49 39 78 76
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: