cout << flush;
cout.flush();
cout << endl;
*Forcing all buffered output to actually be printed is known as "flushing" the stream. A flush can be forced by calling the flush function associated with each output stream, inserting the magic variable flush into the stream, or inserting endl.
没有评论:
发表评论