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/istream/ipfx.cpp

16 lines
294 B
C++

#include <iostream.h>
#include <ctype.h>
class upstream : public istream {
public:
upstream ( streambuf *sptr ) : ios( sptr ), istream( sptr ) {};
upstream &operator>> ( char *p );
};
upstream &upstream::operator>> ( char *p ) {
if( ipfx() ) {
//this >> p;