Creating an iostream
How do I declare an iostream? All I get is a C2512 saying there's no appropriate constructor for the class. Only the fstreams work.
Clicky
What sort of iostream do you want? Use fstreams to handle files, cout to sent to the console, streamstreams for strings, etc. It all depends on what you want to do.
What sort of iostream do you want? Use fstreams to handle files, cout to sent to the console, streamstreams for strings, etc. It all depends on what you want to do.
Quote:Original post by Kekko
How do I declare an iostream? All I get is a C2512 saying there's no appropriate constructor for the class. Only the fstreams work.
You're trying to inherit from iostream aren't you, well you need to pass it a std::streambuf* using a constructor specifier.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement