Hi,
My definition of a stream is a sequence of data, but it does not really make sense when thinking about stream objects.
For example, "cin >> var;" awaits for the user to input something; and after the user presses enter (after inputting something) the input is in the buffer, where all or part of data is to be extracted to "var". Is the buffer equivalent to the cin object? What is the role of cin object? Thinking something as cin represents a stream or the input device confuses me.
What's the model behind input and output? Can somebody provide an analogy to help me understand the model?
I appreciate your help.