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

23 lines
462 B
C++
Raw Permalink Normal View History

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