📄 misc.i
字号:
protected:
ios();
ios(const ios&);
ios& operator=(const ios&);
void init(streambuf*);
enum { skipping, tied };
streambuf* bp;
int state;
int ispecial;
int ospecial;
int isfx_special;
int osfx_special;
int x_delbuf;
ostream* x_tie;
long x_flags;
int x_precision;
char x_fill;
int x_width;
static void (*stdioflush)();
static void lockc() { }
static void unlockc() { }
#line 235 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
public:
int delbuf() const { return x_delbuf; }
void delbuf(int _i) { x_delbuf = _i; }
private:
static long x_maxbit;
static int x_curindex;
static int sunk_with_stdio;
static long * x_statebuf;
#line 254 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
};
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#pragma once
#line 18 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#line 27 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#pragma pack(push,8)
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\useoldio.h"
#line 35 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#line 37 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#pragma warning(disable:4514)
#line 64 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
typedef long streampos, streamoff;
class ios;
class streambuf {
public:
virtual ~streambuf();
inline int in_avail() const;
inline int out_waiting() const;
int sgetc();
int snextc();
int sbumpc();
void stossc();
inline int sputbackc(char);
inline int sputc(int);
inline int sputn(const char *,int);
inline int sgetn(char *,int);
virtual int sync();
virtual streambuf* setbuf(char *, int);
virtual streampos seekoff(streamoff,ios::seek_dir,int =ios::in|ios::out);
virtual streampos seekpos(streampos,int =ios::in|ios::out);
virtual int xsputn(const char *,int);
virtual int xsgetn(char *,int);
virtual int overflow(int =(-1)) = 0;
virtual int underflow() = 0;
virtual int pbackfail(int);
void dbp();
void lock() { }
void unlock() { }
#line 112 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
protected:
streambuf();
streambuf(char *,int);
inline char * base() const;
inline char * ebuf() const;
inline char * pbase() const;
inline char * pptr() const;
inline char * epptr() const;
inline char * eback() const;
inline char * gptr() const;
inline char * egptr() const;
inline int blen() const;
inline void setp(char *,char *);
inline void setg(char *,char *,char *);
inline void pbump(int);
inline void gbump(int);
void setb(char *,char *,int =0);
inline int unbuffered() const;
inline void unbuffered(int);
int allocate();
virtual int doallocate();
private:
int _fAlloc;
int _fUnbuf;
int x_lastc;
char * _base;
char * _ebuf;
char * _pbase;
char * _pptr;
char * _epptr;
char * _eback;
char * _gptr;
char * _egptr;
};
inline int streambuf::in_avail() const { return (gptr()<_egptr) ? (_egptr-gptr()) : 0; }
inline int streambuf::out_waiting() const { return (_pptr>=_pbase) ? (_pptr-_pbase) : 0; }
inline int streambuf::sputbackc(char _c){ return (_eback<gptr()) ? *(--_gptr)=_c : pbackfail(_c); }
inline int streambuf::sputc(int _i){ return (_pptr<_epptr) ? (unsigned char)(*(_pptr++)=(char)_i) : overflow(_i); }
inline int streambuf::sputn(const char * _str,int _n) { return xsputn(_str, _n); }
inline int streambuf::sgetn(char * _str,int _n) { return xsgetn(_str, _n); }
inline char * streambuf::base() const { return _base; }
inline char * streambuf::ebuf() const { return _ebuf; }
inline int streambuf::blen() const {return ((_ebuf > _base) ? (_ebuf-_base) : 0); }
inline char * streambuf::pbase() const { return _pbase; }
inline char * streambuf::pptr() const { return _pptr; }
inline char * streambuf::epptr() const { return _epptr; }
inline char * streambuf::eback() const { return _eback; }
inline char * streambuf::gptr() const { return _gptr; }
inline char * streambuf::egptr() const { return _egptr; }
inline void streambuf::gbump(int _n) { if (_egptr) _gptr += _n; }
inline void streambuf::pbump(int _n) { if (_epptr) _pptr += _n; }
inline void streambuf::setg(char * _eb, char * _g, char * _eg) {_eback=_eb; _gptr=_g; _egptr=_eg; x_lastc=(-1); }
inline void streambuf::setp(char * _p, char * _ep) {_pptr=_pbase=_p; _epptr=_ep; }
inline int streambuf::unbuffered() const { return _fUnbuf; }
inline void streambuf::unbuffered(int _f) { _fUnbuf = _f; }
#pragma pack(pop)
#line 188 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#line 190 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#line 192 "D:/Progra~1/Micros~2/VC98/Include\\streamb.h"
#line 257 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
inline ios& __cdecl dec(ios& _strm) { _strm.setf(ios::dec,ios::basefield); return _strm; }
inline ios& __cdecl hex(ios& _strm) { _strm.setf(ios::hex,ios::basefield); return _strm; }
inline ios& __cdecl oct(ios& _strm) { _strm.setf(ios::oct,ios::basefield); return _strm; }
inline long ios::flags() const { return x_flags; }
inline long ios::flags(long _l){ long _lO; _lO = x_flags; x_flags = _l; return _lO; }
inline long ios::setf(long _l,long _m){ long _lO; lock(); _lO = x_flags; x_flags = (_l&_m) | (x_flags&(~_m)); unlock(); return _lO; }
inline long ios::setf(long _l){ long _lO; lock(); _lO = x_flags; x_flags |= _l; unlock(); return _lO; }
inline long ios::unsetf(long _l){ long _lO; lock(); _lO = x_flags; x_flags &= (~_l); unlock(); return _lO; }
inline int ios::width() const { return x_width; }
inline int ios::width(int _i){ int _iO; _iO = (int)x_width; x_width = _i; return _iO; }
inline ostream* ios::tie(ostream* _os){ ostream* _osO; _osO = x_tie; x_tie = _os; return _osO; }
inline ostream* ios::tie() const { return x_tie; }
inline char ios::fill() const { return x_fill; }
inline char ios::fill(char _c){ char _cO; _cO = x_fill; x_fill = _c; return _cO; }
inline int ios::precision(int _i){ int _iO; _iO = (int)x_precision; x_precision = _i; return _iO; }
inline int ios::precision() const { return x_precision; }
inline int ios::rdstate() const { return state; }
inline int ios::operator!() const { return state&(badbit|failbit); }
inline int ios::bad() const { return state & badbit; }
inline void ios::clear(int _i){ lock(); state = _i; unlock(); }
inline int ios::eof() const { return state & eofbit; }
inline int ios::fail() const { return state & (badbit | failbit); }
inline int ios::good() const { return state == 0; }
inline streambuf* ios::rdbuf() const { return bp; }
inline long & ios::iword(int _i) const { return x_statebuf[_i] ; }
inline void * & ios::pword(int _i) const { return (void * &)x_statebuf[_i]; }
#pragma pack(pop)
#line 306 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
#line 308 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
#line 310 "D:/Progra~1/Micros~2/VC98/Include\\ios.h"
#line 53 "D:/Progra~1/Micros~2/VC98/Include\\iostream.h"
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#pragma once
#line 18 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#line 27 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#pragma pack(push,8)
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\useoldio.h"
#line 35 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#line 37 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#pragma warning(disable:4069)
#pragma warning(disable:4514)
#line 60 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
typedef long streamoff, streampos;
class istream : virtual public ios {
public:
istream(streambuf*);
virtual ~istream();
int ipfx(int =0);
void isfx() { unlockbuf(); unlock(); }
inline istream& operator>>(istream& (__cdecl * _f)(istream&));
inline istream& operator>>(ios& (__cdecl * _f)(ios&));
istream& operator>>(char *);
inline istream& operator>>(unsigned char *);
inline istream& operator>>(signed char *);
istream& operator>>(char &);
inline istream& operator>>(unsigned char &);
inline istream& operator>>(signed char &);
istream& operator>>(short &);
istream& operator>>(unsigned short &);
istream& operator>>(int &);
istream& operator>>(unsigned int &);
istream& operator>>(long &);
istream& operator>>(unsigned long &);
istream& operator>>(float &);
istream& operator>>(double &);
istream& operator>>(long double &);
istream& operator>>(streambuf*);
int get();
inline istream& get( char *,int,char ='\n');
inline istream& get(unsigned char *,int,char ='\n');
inline istream& get( signed char *,int,char ='\n');
istream& get(char &);
inline istream& get(unsigned char &);
inline istream& get( signed char &);
istream& get(streambuf&,char ='\n');
inline istream& getline( char *,int,char ='\n');
inline istream& getline(unsigned char *,int,char ='\n');
inline istream& getline( signed char *,int,char ='\n');
inline istream& ignore(int =1,int =(-1));
istream& read(char *,int);
inline istream& read(unsigned char *,int);
inline istream& read(signed char *,int);
int gcount() const { return x_gcount; }
int peek();
istream& putback(char);
int sync();
istream& seekg(streampos);
istream& seekg(streamoff,ios::seek_dir);
streampos tellg();
void eatwhite();
protected:
istream();
istream(const istream&);
istream& operator=(streambuf* _isb);
istream& operator=(const istream& _is) { return operator=(_is.rdbuf()); }
istream& get(char *, int, int);
int do_ipfx(int);
private:
istream(ios&);
int getint(char *);
int getdouble(char *, int);
int _fGline;
int x_gcount;
};
inline istream& istream::operator>>(istream& (__cdecl * _f)(istream&)) { (*_f)(*this); return *this; }
inline istream& istream::operator>>(ios& (__cdecl * _f)(ios&)) { (*_f)(*this); return *this; }
inline istream& istream::operator>>(unsigned char * _s) { return operator>>((char *)_s); }
inline istream& istream::operator>>( signed char * _s) { return operator>>((char *)_s); }
inline istream& istream::operator>>(unsigned char & _c) { return operator>>((char &) _c); }
inline istream& istream::operator>>( signed char & _c) { return operator>>((char &) _c); }
inline istream& istream::get( char * _b, int _lim, char _delim) { return get( _b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(unsigned char * _b, int _lim, char _delim) { return get((char *)_b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(signed char * _b, int _lim, char _delim) { return get((char *)_b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(unsigned char & _c) { return get((char &)_c); }
inline istream& istream::get( signed char & _c) { return get((char &)_c); }
inline istream& istream::getline( char * _b,int _lim,char _delim) { lock(); _fGline++; get( _b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::getline(unsigned char * _b,int _lim,char _delim) { lock(); _fGline++; get((char *)_b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::getline( signed char * _b,int _lim,char _delim) { lock(); _fGline++; get((char *)_b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::ignore(int _n,int _delim) { lock(); _fGline++; get((char *)0, _n+1, _delim); unlock(); return *this; }
inline istream& istream::read(unsigned char * _ptr, int _n) { return read((char *) _ptr, _n); }
inline istream& istream::read( signed char * _ptr, int _n) { return read((char *) _ptr, _n); }
class istream_withassign : public istream {
public:
istream_withassign();
istream_withassign(streambuf*);
~istream_withassign();
istream& operator=(const istream& _is) { return istream::operator=(_is); }
istream& operator=(streambuf* _isb) { return istream::operator=(_isb); }
};
extern istream_withassign cin;
inline istream& __cdecl ws(istream& _ins) { _ins.eatwhite(); return _ins; }
ios& __cdecl dec(ios&);
ios& __cdecl hex(ios&);
ios& __cdecl oct(ios&);
#pragma pack(pop)
#line 185 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#line 187 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#line 189 "D:/Progra~1/Micros~2/VC98/Include\\istream.h"
#line 57 "D:/Progra~1/Micros~2/VC98/Include\\iostream.h"
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#pragma once
#line 18 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#line 27 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#pragma pack(push,8)
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\useoldio.h"
#line 35 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#line 37 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#pragma warning(disable:4514)
#line 56 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
typedef long streamoff, streampos;
class ostream : virtual public ios {
public:
ostream(streambuf*);
virtual ~ostream();
ostream& flush();
int opfx();
void osfx();
inline ostream& operator<<(ostream& (__cdecl * _f)(ostream&));
inline ostream& operator<<(ios& (__cdecl * _f)(ios&));
ostream& operator<<(const char *);
inline ostream& operator<<(const unsigned char *);
inline ostream& operator<<(const signed char *);
inline ostream& operator<<(char);
ostream& operator<<(unsigned char);
inline ostream& operator<<(signed char);
ostream& operator<<(short);
ostream& operator<<(unsigned short);
ostream& operator<<(int);
ostream& operator<<(unsigned int);
ostream& operator<<(long);
ostream& operator<<(unsigned long);
inline ostream& operator<<(float);
ostream& operator<<(double);
ostream& operator<<(long double);
ostream& operator<<(const void *);
ostream& operator<<(streambuf*);
inline ostream& put(char);
ostream& put(unsigned char);
inline ostream& put(signed char);
ostream& write(const char *,int);
inline ostream& write(const unsigned char *,int);
inline ostream& write(const signed char *,int);
ostream& seekp(streampos);
ostream& seekp(streamoff,ios::seek_dir);
streampos tellp();
protected:
ostream();
ostream(const ostream&);
ostream& operator=(streambuf*);
ostream& operator=(const ostream& _os) {return operator=(_os.rdbuf()); }
int do_opfx(int);
void do_osfx();
private:
ostream(ios&);
ostream& writepad(const char *, const char *);
int x_floatused;
};
inline ostream& ostream::operator<<(ostream& (__cdecl * _f)(ostream&)) { (*_f)(*this); return *this; }
inline ostream& ostream::operator<<(ios& (__cdecl * _f)(ios& )) { (*_f)(*this); return *this; }
inline ostream& ostream::operator<<(char _c) { return operator<<((unsigned char) _c); }
inline ostream& ostream::operator<<(signed char _c) { return operator<<((unsigned char) _c); }
inline ostream& ostream::operator<<(const unsigned char * _s) { return operator<<((const char *) _s); }
inline ostream& ostream::operator<<(const signed char * _s) { return operator<<((const char *) _s); }
inline ostream& ostream::operator<<(float _f) { x_floatused = 1; return operator<<((double) _f); }
inline ostream& ostream::put(char _c) { return put((unsigned char) _c); }
inline ostream& ostream::put(signed char _c) { return put((unsigned char) _c); }
inline ostream& ostream::write(const unsigned char * _s, int _n) { return write((char *) _s, _n); }
inline ostream& ostream::write(const signed char * _s, int _n) { return write((char *) _s, _n); }
class ostream_withassign : public ostream {
public:
ostream_withassign();
ostream_withassign(streambuf* _is);
~ostream_withassign();
ostream& operator=(const ostream& _os) { return ostream::operator=(_os.rdbuf()); }
ostream& operator=(streambuf* _sb) { return ostream::operator=(_sb); }
};
extern ostream_withassign cout;
extern ostream_withassign cerr;
extern ostream_withassign clog;
inline ostream& __cdecl flush(ostream& _outs) { return _outs.flush(); }
inline ostream& __cdecl endl(ostream& _outs) { return _outs << '\n' << flush; }
inline ostream& __cdecl ends(ostream& _outs) { return _outs << char('\0'); }
ios& __cdecl dec(ios&);
ios& __cdecl hex(ios&);
ios& __cdecl oct(ios&);
#pragma pack(pop)
#line 155 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#line 157 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#line 159 "D:/Progra~1/Micros~2/VC98/Include\\ostream.h"
#line 59 "D:/Progra~1/Micros~2/VC98/Include\\iostream.h"
#pragma warning(disable:4514)
#line 65 "D:/Progra~1/Micros~2/VC98/Include\\iostream.h"
class iostream : public istream, public ostream {
public:
iostream(streambuf*);
virtual ~iostream();
protected:
iostream();
iostream(const iostream&);
inline iostream& operator=(streambuf*);
inline iostream& operator=(iostream&);
private:
iostream(ios&);
iostream(istream&);
iostream(ostream&);
};
inline iostream& iostream::operator=(streambuf* _sb) { istream::operator=(_sb); ostream::operator=(_sb); return *this; }
inline iostream& iostream::operator=(iostream& _strm) { return operator=(_strm.rdbuf()); }
class Iostream_init {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -