post  iostream - Where's the Stream?

NGen (161)   Link to this post
Throughout the Standard Library, the term 'stream' is used multiple times. ifstream, stringstream, ostream, but what's the point of the 'stream' part of the names? Why do they call all of these classes 'stream's?
helios (4790)   Link to this post
http://en.wikipedia.org/wiki/Stream_%28computing%29
http://en.wikipedia.org/wiki/Standard_streams
NGen (161)   Link to this post
So, basically, it's a way of getting data from one place to another?

(And thanks for those links, I tried Google but it didn't come up with anything)
helios (4790)   Link to this post
Basically, yes. It's an abstraction of that process.
Think of an output stream as a sink. You can dump as much water as you want, but you can't get it out. Following the analogy, an input stream would be a faucet, and memory would be a bucket, or perhaps a set of glasses.

Registered users can post in this forum.