Thread: ostream and istream

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003

    Question ostream and istream

    Question on inheritence I'm assuming. Correct me if I'm wrong.
    I have read that istream and ostream are parents of iostream.
    Does istream contain cin?
    Does ostream contain cout?
    And does iostream inherit cin and cout from istream and ostream?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    I always thought it was the other way round, ostream and istream are just specialized versions of iostream, in the same way that ifstream and ofstream are specialized versions of fstream. I don't know for sure though, so don't believe me (your probably right)

  3. #3
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Phildelphia, PA
    My suggestion is to open up the library files and find out for yourself.

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. istream and ostream not declared?
    By aciarlillo in forum C++ Programming
    Replies: 4
    Last Post: 10-02-2005, 01:02 AM
  2. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  3. Error returning istream in class implementation.
    By joshdick in forum C++ Programming
    Replies: 8
    Last Post: 12-29-2002, 03:02 PM
  4. help debug overloading <<
    By rip1968 in forum C++ Programming
    Replies: 1
    Last Post: 05-02-2002, 11:45 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM