17 class dmsg :
public std::streambuf
47 int main(
int argc,
char **argv)
57 std::cout <<
"blah" << std::endl;
65 std::cout << std::endl;
66 std::cout <<
"i="<< i <<
"|ch="<<ch<<std::endl;
67 std::cout <<
"prompt:";
69 std::cout <<
"i="<< i <<
"|ch="<<ch<<std::endl;
76 std::cout <<
"msg_p->p is NULL" << std::endl;
79 std::cout <<
"msg_p->i is ZERO" << std::endl;
87 std::cout <<
"i_p is VALID" << std::endl;
90 std::cout <<
"i_p is NULL" << std::endl;
93 std::cout <<
"i_p is ZERO" << std::endl;
98 std::cout <<
"*i_p is ZERO" << std::endl;
100 std::cout <<
"*i_p=" << *i_p <<std::endl;
virtual int_type overflow(int_type c)
Demonstration of streambuf inheritance.
int main(int argc, char **argv)