Can somebody tell me what actually a Stream means in C++..i am lots confued on this topic..Is is something that store bytes from input or output,,or smthing else....and how does it act as source and destination for I/O..pls help
Thanks.....
Can somebody tell me what actually a Stream means in C++..i am lots confued on this topic..Is is something that store bytes from input or output,,or smthing else....and how does it act as source and destination for I/O..pls help
Thanks.....
What have you done so far in your research? Have you at least started with the basics: lmgtfy
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
Conceptually, a stream is data with a serial interface -- data that is you access it in order as opposed to however you like. You can have input streams, which read data serially, and output streams, which write data serially. IO interfaces are often written as streams.
The C++ standard library uses streams mostly for console and file IO.
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
streams can also be used to access things like serial ports and network connections like TCP and HTTP. Boost Asio does some pretty awesome stuff.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?