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?
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
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)
My suggestion is to open up the library files and find out for yourself.
FAQ
"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.