Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: Questions with stream I/O in DEC C++ (cxx) on Digital Unix
  1997-05-09  4:00 Questions with stream I/O in DEC C++ (cxx) on Digital Unix Edward L Bolson
@ 1997-05-09  4:00 ` Edward L Bolson
  0 siblings, 0 replies; 2+ messages in thread
From: Edward L Bolson @ 1997-05-09  4:00 UTC (permalink / raw)



Edward L Bolson wrote:
> 
> I have ported several programs from an SGI, running IRIX 5.3 and CC.
> These programs compile and run on our Alpha running 4.0b, with some of
> the output exactly the same as on the SGI.
> 
> HOWEVER, much of the file output seems to be either out of order and
> nonexistent.  This is all text using the << type output operators.
> I can follow the code in the debugger, and, for instance, if it is
> supposed to output the locations of 600 points, it goes through the loop
> 600 times, but only about 400 lines end up in the output file.  Then
> further output from later in the program shows up properly.
> 
> I am at wit's end.  I will see if I can find anything in language
> release notes about caveats, but would like to know if this is a known
> problem.
> 
> I have checked the public patches and the ECO CD-ROM, and believe I am
> up-to-date on everything.
> 
> Thanks for any advice.
> 
> Ed


Well, the Using DEC C++ notes say that:
	cout << "\n";
doesn't do a flush, since the C++ standard doesn't require it.
I should use:
	cout << ... << endl;
instead.
I tried it.  Apparently that is indeed the ticket.

I hope noone has to respond before they see the solution!

Ed


-- 
Ed Bolson       University of Washington  Cardiac Imaging Lab    
(206)543-4535
bolson@u.washington.edu    http://weber.u.washington.edu/~bolson
Box 356422, Room RR 616 Health Science Building, Seattle, WA, 98195-6422



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Questions with stream I/O in DEC C++ (cxx) on Digital Unix
@ 1997-05-09  4:00 Edward L Bolson
  1997-05-09  4:00 ` Edward L Bolson
  0 siblings, 1 reply; 2+ messages in thread
From: Edward L Bolson @ 1997-05-09  4:00 UTC (permalink / raw)



I have ported several programs from an SGI, running IRIX 5.3 and CC.
These programs compile and run on our Alpha running 4.0b, with some of
the output exactly the same as on the SGI.

HOWEVER, much of the file output seems to be either out of order and
nonexistent.  This is all text using the << type output operators.
I can follow the code in the debugger, and, for instance, if it is
supposed to output the locations of 600 points, it goes through the loop
600 times, but only about 400 lines end up in the output file.  Then
further output from later in the program shows up properly.

I am at wit's end.  I will see if I can find anything in language
release notes about caveats, but would like to know if this is a known
problem.  

I have checked the public patches and the ECO CD-ROM, and believe I am
up-to-date on everything.

Thanks for any advice.

Ed



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-09  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-09  4:00 Questions with stream I/O in DEC C++ (cxx) on Digital Unix Edward L Bolson
1997-05-09  4:00 ` Edward L Bolson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox