The information in this article applies to:
SUMMARYIn these products, the cout class uses a buffering system for data that may not be flushed immediately. Because cout usually handles small messages, several messages are usually needed to fill the buffer, which will cause the data to be written to the standard output handle. In some cases, this can cause considerable delay when writing output to the screen during a debugging session. This problem can be avoided, however, by using the endl manipulator. When appended to the end of a cout call, the endl manipulator inserts a newline character and then flushes the buffer. MORE INFORMATIONSample Code
For more information on the other methods to flush the cout buffer, please
see the following article in the Microsoft Knowledge Base:
Q94227 INFO: Output Stream cout Is Buffered Additional query words: 8.00 8.00c 9.00 9.10 CodeView CVW
Keywords : kbLangCPP kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |