B
bo ye
For example it's really puzzled me when I wrote:
cout<<"Hi"<<flush;
and
cout<<"Hi"<<endl;
The <C++ Primer > says : the "flush " flushes the buffer , adds no
data and the "endl" inserts a newline , the flushes the buffer.
I can not understand . Please tell me how the C++ stream implements.
cout<<"Hi"<<flush;
and
cout<<"Hi"<<endl;
The <C++ Primer > says : the "flush " flushes the buffer , adds no
data and the "endl" inserts a newline , the flushes the buffer.
I can not understand . Please tell me how the C++ stream implements.