This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/iostream/ostream/conbuf.cpp

14 lines
240 B
C++
Raw Permalink Normal View History

#include <iostream.h>
class mystream : public ostream {
public:
mystream ( streambuf *str ) : ios ( str ), ostream ( str ) {};
};
void main( void ) {
mystream test ( cout.rdbuf() );
test << "Just for fun!" << endl;
}