G
Guest
This will most definitely seem n(oo|ew)bish but I come seeking guidance in
the ways of "IO Streams". I have Bjarne's book but sadly it does not seem to
delve into streams a whole (at least from a practical stand point -- but I
do not think that is his goal). My ultimate goal will be, for academic
purposes, to create a pseudo high level set of classes for network
communication. However it is not my immediate goal.
My immediate goal is to understand the relationship between streams and
buffers and how they work... As an example:
This doesn't work:
std::basic_iostream< char > BrokenStream;
// I get "unable to find appropriate constructor" with the MS compiler.
Instead I first need to derive a class from "basic_iostream" ala:
class CharIOStream : public std::basic_iostream< char >
{
public:
CharIOStream( void ) : std::basic_iostream< char >( 0 ){ return; }
};
// This works for reasons I do not understand yet.
In closing I'd be most appreciative if someone could point me to a resource
online that takes the steps through these wonderful streams and buffers. At
the moment I'd prefer an online resource; I have found countless
recommendations to many C++ IO based books and they are awaiting me perusal.

tyi!
the ways of "IO Streams". I have Bjarne's book but sadly it does not seem to
delve into streams a whole (at least from a practical stand point -- but I
do not think that is his goal). My ultimate goal will be, for academic
purposes, to create a pseudo high level set of classes for network
communication. However it is not my immediate goal.
My immediate goal is to understand the relationship between streams and
buffers and how they work... As an example:
This doesn't work:
std::basic_iostream< char > BrokenStream;
// I get "unable to find appropriate constructor" with the MS compiler.
Instead I first need to derive a class from "basic_iostream" ala:
class CharIOStream : public std::basic_iostream< char >
{
public:
CharIOStream( void ) : std::basic_iostream< char >( 0 ){ return; }
};
// This works for reasons I do not understand yet.
In closing I'd be most appreciative if someone could point me to a resource
online that takes the steps through these wonderful streams and buffers. At
the moment I'd prefer an online resource; I have found countless
recommendations to many C++ IO based books and they are awaiting me perusal.
tyi!