⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iostream.cpp

📁 windows mobile phone source code
💻 CPP
字号:
//
// (c) Yuriy Gorvitovskiy
// for Openh323, www.Openh323.org
//
// Windows CE Port
//
// iostream implementation
//

#include <iostream.h>

/*******************************************************************************/
iostream::iostream()
: istream(), ostream()
{
}

/*******************************************************************************/
iostream::iostream(streambuf* pSB)
: istream(pSB), ostream(pSB)
{
}

/*******************************************************************************/
iostream::iostream(const iostream& Strm)
: istream(Strm), ostream(Strm)
{
}

/*******************************************************************************/
iostream::~iostream()
{
if ((istream::bp==ostream::bp) && (&istream::bp!=&ostream::bp))
        istream::bp = NULL;     // let ostream::ios::~ios() do it
}

/*******************************************************************************/
//!!![YG] ostream_withassign cout(new filebuf(1));
//!!![YG] static Iostream_init  __InitCout(cout,-1);

/*******************************************************************************/
Iostream_init::Iostream_init() 
{
}

/*******************************************************************************/
Iostream_init::Iostream_init(ios& pstrm, int sflg)
{
    pstrm.delbuf(1);
    if (sflg>=0)    // make sure not cout
            pstrm.tie(&cout);
    if (sflg>0)
            pstrm.setf(ios::unitbuf);
}

/*******************************************************************************/
Iostream_init::~Iostream_init() 
{ 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -