|
-
November 21st, 2008, 09:15 AM
#3
Re: lines of code not processing in sequential order
 Originally Posted by Lindley
cout is a buffered stream. That means it won't display anything you write to it until the buffer is flushed (or it fills up). While cout << flush is available, whenever you do cout << endl it flushes the stream as well. (So if you don't need to flush the stream but you want to write a new line, use cout << '\n' instead.)
cerr is unbuffered, FYI.
While that is true, and documented for:
Microsoft Visual C++ 1.0 Professional Edition
Microsoft Visual C++ 1.5 Professional Edition
Microsoft Visual C++ 1.51
Microsoft Visual C++ 1.52 Professional Edition
Microsoft Visual C++ 2.0 Professional Edition
Microsoft Visual C++ 2.1
Microsoft Visual C++ 4.0 Standard Edition
Microsoft Visual C++ 5.0 Enterprise Edition
Microsoft Visual C++ 6.0 Enterprise Edition
Microsoft Visual C++ 5.0 Professional Edition
Microsoft Visual C++ 6.0 Professional Edition
Microsoft Visual C++, 32-bit Learning Edition 6.0
I can NOT find a statement about this functionallity in the ISO Standard....can you please post a link showing this is true for C++ and not just for certain compilers [the above are all known to be non-compliant as they were written before the standard - and are also all obsolete....]
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|