I found from C++ I/O that streams are merely a connection between the source (file, keyboard, network etc.) but I am still not able to understand where the buffers (which controls the flow of data) are located (on which stage) when it comes to streams. All this to understand streambuf
.
缓冲区位于流的末尾:
ostream ------> buffer -------> file, keyboard, console
istream <------ buffer <------- file, key board, console
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.