std::basic_ostream

来自cppreference.com
< cpp | io

 
 
输入/输出库
I / O操纵
C-风格的I / O
缓冲区
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(过时了)
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
抽象
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
文件I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
字符串I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
阵列的I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(过时了)
ostrstream(过时了)
strstream(过时了)
类型
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Error类的接口
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_ostream
全局对象
Original:
Global objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
成员函数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::basic_ostream
basic_ostream::~basic_ostream
basic_ostream::operator=(C++11)
格式化的输入
Original:
Formatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::operator<<
未格式化的输入
Original:
Unformatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::put
basic_ostream::write
定位
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::tellp
basic_ostream::seekp
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::flush
basic_ostream::swap(C++11)
会员类别
Original:
Member classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ostream::sentry
非成员函数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator<<(std::basic_ostream)
 
Defined in header <ostream>
template<

    class CharT,
    class Traits = std::char_traits<CharT>

> class basic_ostream : virtual public std::basic_ios<CharT, Traits>
类模板basic_ostream提供了高层次的输出操作字符流的支持。支持的操作包括格式化的输出(例如整数值)和未格式化的输出(如原始字符和字符数组)。实现此功能basic_streambuf类,可以通过basic_ios基类的接口。在典型的实现,basic_ostream有没有非继承的数据成员..
Original:
The class template basic_ostream provides support for high level output operations on character streams. The supported operations include formatted output (e.g. integer values) and unformatted output (e.g. raw characters and character arrays). This functionality is implemented in terms of the interface provided by the basic_streambuf class, accessed through the basic_ios base class. In typical implementations, basic_ostream has no non-inherited data members.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
cpp/io/ios basecpp/io/basic iosstd-basic ostream-inheritance.svg
关于这幅图像

Inheritance diagram

常见的字符类型也定义两个专业
Original:
Two specializations for common character types are also defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <ostream>
类型
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
ostream basic_ostream<char>
wostream basic_ostream<wchar_t>

目录

[编辑] 全局对象

全球六大basic_ostream对象所提供的标准库.
Original:
Six global basic_ostream objects are provided by the standard library.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <iostream>
写入标准C的输出流stdout
(全局对象)
Original:
writes to the standard C output stream stdout
(全局对象)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
写入标准的C错误流stderr,unbuffered
(全局对象)
Original:
writes to the standard C error stream stderr, unbuffered
(全局对象)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
写入标准的C错误流stderr
(全局对象)
Original:
writes to the standard C error stream stderr
(全局对象)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]

[编辑] 会员类型

会员类型
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type CharT[edit]
traits_type Traits[edit]
int_type Traits::int_type[edit]
pos_type Traits::pos_type[edit]
off_type Traits::off_type[edit]

[编辑] 成员函数

构造对象
Original:
constructs the object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
[虚拟的] </ SPAN></div></div>
解构的对象
Original:
destructs the object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(虚拟公有成员函数) [edit]
(C++11)
替换缓存对象
Original:
replaces the buffer object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(受保护的成员函数) [edit]
格式化输出
Original:
Formatted output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
插入格式化的数据
Original:
inserts formatted data
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
未格式化的输出
Original:
Unformatted output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
插入一个字符
Original:
inserts a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
插入的字符块
Original:
inserts blocks of characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
定位
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
返回的输出位置指示器
Original:
returns the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
设置输出位置指示器
Original:
sets the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
与底层存储设备同步
Original:
synchronizes with the underlying storage device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]
(C++11)
掉期流对象,除了相关的缓冲
Original:
swaps stream objects, except for the associated buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(受保护的成员函数) [edit]

[编辑] 会员类别

实现了基本的逻辑流输出操作的准备
Original:
implements basic logic for preparation of the stream for output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员类) [edit]

[编辑] 非成员函数

插入字符数据
Original:
inserts character data
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]

Inherited from std::basic_ios

Member types

会员类型
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type CharT
traits_type Traits
int_type Traits::int_type
pos_type Traits::pos_type
off_type Traits::off_type
国家职能
Original:
State functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
检查,如果没有错误发生,即I / O操作都可以
Original:
checks if no error has occurred i.e. I/O operations are available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
如果最终文件的检查已经达到了
Original:
checks if end-of-file has been reached
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
如果已经发生可恢复的错误检查
Original:
checks if a recoverable error has occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
检查,如果已经发生了不可恢复的错误
Original:
checks if a non-recoverable error has occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
检查如果有错误发生(代名词fail()
Original:
checks if an error has occurred (synonym of fail())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
(至 C++11)
(C++11 起)
检查,如果没有发生错误(同义词!fail()
Original:
checks if no error has occurred (synonym of !fail())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
返回状态标志
Original:
returns state flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
设置状态标志
Original:
sets state flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
清除错误和EOF标志
Original:
clears error and eof flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
格式化信息的副本
Original:
copies formatting information
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
管理的填充字符
Original:
manages the fill character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
manages exception mask
(公共成员函数of std::basic_ios [edit]
设置语言环境
Original:
sets the locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
管理相关的流缓冲
Original:
manages associated stream buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
管理绑流
Original:
manages tied stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
缩小字符
Original:
narrows characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::basic_ios [edit]
widens characters
(公共成员函数of std::basic_ios [edit]

Inherited from std::ios_base

Member functions

格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
管理格式的标志
Original:
manages format flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
设置特定格式的标志
Original:
sets specific format flag
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
clears specific format flag
(公共成员函数of std::ios_base [edit]
管理小数精度浮点运算
Original:
manages decimal precision of floating point operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
manages field width
(公共成员函数of std::ios_base [edit]
语言环境
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
设置场景
Original:
sets locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
返回当前的区域设置
Original:
returns current locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
内部可扩展的阵列
Original:
Internal extensible array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[静态的] </ SPAN></div></div>
返回一个程序范围内唯一的整数,它是安全使用指数PWORD()和iword()
Original:
returns a program-wide unique integer that is safe to use as index to pword() and iword()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共静态成员函数of std::ios_base [edit]
调整大小的私人存储,如果必要的,访问long元素在给定的索引
Original:
resizes the private storage if necessary and access to the long element at the given index
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
调整大小的私人存储,如果必要的,访问void*元素在给定的索引
Original:
resizes the private storage if necessary and access to the void* element at the given index
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数of std::ios_base [edit]
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
registers event callback function
(公共成员函数of std::ios_base [edit]
[静态的] </ SPAN></div></div>
C + +和C IO库的设置是否是可互操作的
Original:
sets whether C++ and C IO libraries are interoperable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共静态成员函数of std::ios_base [edit]
会员类别
Original:
Member classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
流异常
Original:
stream exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员类of std::ios_base [edit]
标准流对象进行初始化
Original:
initializes standard stream objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员类of std::ios_base [edit]

会员类型和常量
Original:
Member types and constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

类型
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
流开放的模式类型

有以下常量的定义:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
app
寻求每次写操作之前的数据流结束
Original:
seek to the end of stream before each write
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
binary
打开二进制模式
Original:
open in binary mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
in
打开阅读
Original:
open for reading
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
out
打开写作
Original:
open for writing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
trunc
丢弃打开时的流的内容
Original:
discard the contents of the stream when opening
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
ate
寻求到的数据流结束后,立即打开
Original:
seek to the end of stream immediately after open
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
stream open mode type

The following constants are also defined:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
app
寻求每次写操作之前的数据流结束
Original:
seek to the end of stream before each write
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
binary
打开二进制模式
Original:
open in binary mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
in
打开阅读
Original:
open for reading
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
out
打开写作
Original:
open for writing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
trunc
丢弃打开时的流的内容
Original:
discard the contents of the stream when opening
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
ate
寻求到的数据流结束后,立即打开
Original:
seek to the end of stream immediately after open
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
格式化标志类型

有以下常量的定义:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
dec
使用十进制整数I / O
Original:
use decimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
oct
使用八进制基地整数I / O
Original:
use octal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
hex
使用16进制整数I / O
Original:
use hexadecimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
basefield
dec|oct|hex|0。用于屏蔽操作
Original:
dec|oct|hex|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
left
左调整(填充字符添加到右侧)
Original:
left adjustment (adds fill characters to the right)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
right
右调整(填充字符添加到左)
Original:
right adjustment (adds fill characters to the left)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
internal
内部调整(填充字符添加到内部指定的点)
Original:
internal adjustment (adds fill characters to the internal designated point)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
adjustfield
left|right|internal。用于屏蔽操作
Original:
left|right|internal. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
scientific
产生的浮点类型,如果再加上固定用科学记数法,或十六进制记数法
Original:
generate floating point types using scientific notation, or hex notation if combined with fixed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
fixed
产生的浮点类型,使用固定的符号,或十六进制记数法如果与科学相结合
Original:
generate floating point types using fixed notation, or hex notation if combined with scientific
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
floatfield
scientific|fixed|(scientific|fixed)|0。用于屏蔽操作
Original:
scientific|fixed|(scientific|fixed)|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
boolalpha
插入和提取bool类型字母数字格式
Original:
insert and extract bool type in alphanumeric format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showbase
生成一个的前缀表示数字的整数输出基地,需要的I / O货币的货币指标
Original:
generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpoint
无条件地为浮点数输出生成一个小数点字符
Original:
generate a decimal-point character unconditionally for floating-point number output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpos
生成+字符对于非负的数值输出
Original:
generate a + character for non-negative numeric output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
skipws
一定的输入操作之前,跳过前导空白
Original:
skip leading whitespace before certain input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
unitbuf
冲洗后的输出的每个输出操作
Original:
flush the output after each output operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
uppercase
更换一定的小写字母与他们的uppercase
equivalents在一定的输出输出操作
Original:
replace certain lowercase letters with their uppercase
equivalents in certain output output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
formatting flags type

The following constants are also defined:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
dec
使用十进制整数I / O
Original:
use decimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
oct
使用八进制基地整数I / O
Original:
use octal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
hex
使用16进制整数I / O
Original:
use hexadecimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
basefield
dec|oct|hex|0。用于屏蔽操作
Original:
dec|oct|hex|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
left
左调整(填充字符添加到右侧)
Original:
left adjustment (adds fill characters to the right)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
right
右调整(填充字符添加到左)
Original:
right adjustment (adds fill characters to the left)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
internal
内部调整(填充字符添加到内部指定的点)
Original:
internal adjustment (adds fill characters to the internal designated point)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
adjustfield
left|right|internal。用于屏蔽操作
Original:
left|right|internal. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
scientific
产生的浮点类型,如果再加上固定用科学记数法,或十六进制记数法
Original:
generate floating point types using scientific notation, or hex notation if combined with fixed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
fixed
产生的浮点类型,使用固定的符号,或十六进制记数法如果与科学相结合
Original:
generate floating point types using fixed notation, or hex notation if combined with scientific
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
floatfield
scientific|fixed|(scientific|fixed)|0。用于屏蔽操作
Original:
scientific|fixed|(scientific|fixed)|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
boolalpha
插入和提取bool类型字母数字格式
Original:
insert and extract bool type in alphanumeric format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showbase
生成一个的前缀表示数字的整数输出基地,需要的I / O货币的货币指标
Original:
generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpoint
无条件地为浮点数输出生成一个小数点字符
Original:
generate a decimal-point character unconditionally for floating-point number output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpos
生成+字符对于非负的数值输出
Original:
generate a + character for non-negative numeric output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
skipws
一定的输入操作之前,跳过前导空白
Original:
skip leading whitespace before certain input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
unitbuf
冲洗后的输出的每个输出操作
Original:
flush the output after each output operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
uppercase
更换一定的小写字母与他们的uppercase
equivalents在一定的输出输出操作
Original:
replace certain lowercase letters with their uppercase
equivalents in certain output output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
流类型的状态

有以下常量的定义:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
goodbit
没有错误
Original:
no error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
badbit
无法收回的流错误
Original:
irrecoverable stream error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
failbit
输入/输出操作失败,(格式化或提取错误)
Original:
input/output operation failed (formatting or extraction error)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
eofbit
相关的输入序列中已达到文件结束
Original:
associated input sequence has reached end-of-file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
state of the stream type

The following constants are also defined:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
goodbit
没有错误
Original:
no error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
badbit
无法收回的流错误
Original:
irrecoverable stream error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
failbit
输入/输出操作失败,(格式化或提取错误)
Original:
input/output operation failed (formatting or extraction error)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
eofbit
相关的输入序列中已达到文件结束
Original:
associated input sequence has reached end-of-file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
seeking direction type

The following constants are also defined:

常数
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
beg
流的开头
Original:
the beginning of a stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
end
流的结束
Original:
the ending of a stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
cur
流中的当前位置的位置指示器
Original:
the current position of stream position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]

(的typedef) [edit]
指定事件类型
Original:
specifies event type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(枚举) [edit]
回调函数类型
Original:
callback function type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]

</div>

来自“http://zh.cppreference.com/mwiki/index.php?title=cpp/io/basic_ostream&oldid=28430