I am currently self-learning in C ++. I am pretty confused about the connection between streams and external devices. Cplusplus explanation of basic I / O
There is no need to know the details of the media associated with the stream or any of its internal specifications. All we need to know is that the streams are the source / destination of the characters and that these characters are provided / received sequentially (i.e. one after the other).
So this means that "streams are the source / destination of the characters." Take the monitor as an example, should the symbol assignment not be a monitor, not a thread? Or can I just take the monitor as a stream? If so, how do you understand the following:
Output stream objects can record sequences of characters and represent other types of data. To perform these output operations, special elements are provided (see Functions below). The standard objects cout, cerr and clog are objects of this type.
It is too connected to think that cout, cerr and clog are monitor objects ... I would rather take the output stream as another object from the monitor.
Can someone kindly explain to me what is the true connection between input / output streams and external devices and how it works? Thank you very much in advance!
source
share