16 lines
302 B
C++
16 lines
302 B
C++
|
#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;
|
||
|
|