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/conostrm.cpp

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

#include <iostream.h>
class mystream : public ostream {
public:
mystream ( ostream &os ) : ios ( os ), ostream ( os ) {}
};
void main( void ) {
mystream test ( cout );
test << "Hello my world!" << endl;
}