Thread: What is Streams....in C++

  1. #1
    Deleted Account
    Join Date
    Oct 2013
    Posts
    39

    Angry What is Streams....in C++

    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.....

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    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

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    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.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with streams
    By IM back! in forum C++ Programming
    Replies: 2
    Last Post: 08-09-2009, 08:38 AM
  2. Streams
    By valaris in forum C Programming
    Replies: 7
    Last Post: 08-07-2008, 03:57 PM
  3. Streams help
    By gamer4life687 in forum C++ Programming
    Replies: 11
    Last Post: 09-07-2005, 05:13 AM
  4. help with streams
    By gamer4life687 in forum C++ Programming
    Replies: 1
    Last Post: 07-11-2003, 05:34 PM
  5. I/O streams
    By scottmanc in forum C++ Programming
    Replies: 16
    Last Post: 02-08-2003, 10:16 PM