?? ostrput.cpp
字號(hào):
/***
* ostrput.cpp - definitions for ostream classes put() and write() functions
*
* Copyright (c) 1991-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Contains the member function definitions for ostream put() and write().
*
*******************************************************************************/
#include <cruntime.h>
#include <internal.h>
#include <iostream.h>
#pragma hdrstop
// note: called inline by char and signed char versions:
ostream& ostream::put(unsigned char c)
{
if (opfx())
{
if (bp->sputc((int)c)==EOF)
state |= (failbit|badbit);
osfx();
}
return(*this);
}
// note: called inline by unsigned char * and signed char * versions:
ostream& ostream::write(const char * s, int n)
{
if (opfx())
{
// Note: 'n' treated as unsigned
if (bp->sputn(s,n)!=n)
state |= (failbit|badbit);
osfx();
}
return(*this);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -