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/ios/init.cpp

16 lines
302 B
C++
Raw Normal View History

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