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

23 lines
449 B
C++

#include <iostream.h>
#include <ctype.h>
class lowstream : public ostream {
public:
lowstream () {};
lowstream ( ostream &os ) : ios ( os ), ostream ( os ) {};
lowstream &operator << ( char *p );
lowstream &operator << ( ostream &(*__f)( ostream & ) ) {
__f( *this );
return( *this );
}
};
lowstream &lowstream::operator<< ( char *p ) {
char *tp;
if( opfx() ) {
//this << p;