Thread View: uchi.cs.cs355
1 messages
1 total messages
Started by Tom McDougal
Tue, 07 May 1991 16:21
floats break istrstream
Author: Tom McDougal
Date: Tue, 07 May 1991 16:21
Date: Tue, 07 May 1991 16:21
13 lines
1074 bytes
1074 bytes
I was trying to read a float off the command line using the nifty
new istrstream function:
float x;
istrstream(argv[1]) >> x;
but no matter what I put on the command line, x=0.
Changing x to a double fixed the problem.
-Tom (mcdougal@cs.uchicago.edu)
--Tom (mcdougal@cs.uchicago.edu)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads