Article View: gnu.gcc.bug
Article #1045G++ 2.2.2 and floating point numbers
From: Jonathan Knight
Date: Wed, 02 Sep 1992 13:47
Date: Wed, 02 Sep 1992 13:47
25 lines
1006 bytes
1006 bytes
G++ 2.2.2
Gas 1.38.1
ld 1.9
libg++ 2.2
I'm having trouble with this program:
#include <fstream.h>
#include <stdlib.h>
int main()
{ float a;
cin >> a;
cout << a << "\n";
}
The output is always 0 regardless of what I put in.
--
______ JANET :jonathan@uk.ac.keele.cs Jonathan Knight,
/ BITNET:jonathan%cs.kl.ac.uk@ukacrl Department of Computer Science
/ _ __ other :jonathan@cs.keele.ac.uk University of Keele, Keele,
(_/ (_) / / UUCP :...!uknet!kl-cs!jonathan Staffordshire. ST5 5BG. U.K.
Technical Details
Message-ID:
<372.9209021347@hank.cs.keele.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.keele.ac.UK!jonathanShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.keele.ac.UK!jonathan From: jonathan@cs.keele.ac.UK (Jonathan Knight) Subject: G++ 2.2.2 and floating point numbers Message-ID: <372.9209021347@hank.cs.keele.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 2 Sep 1992 13:47:07 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 26