std::ios_base::fmtflags

来自cppreference.com

 
 
输入/输出库
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::ios_base
成员函数
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.
ios_base::ios_base
ios_base::~ios_base
格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base::flags
ios_base::setf
ios_base::unsetf
ios_base::precision
ios_base::width
语言环境
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base::imbue
ios_base::getloc
内部可扩展的阵列
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.
ios_base::xalloc
ios_base::iword
ios_base::pword
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base::register_callback
ios_base::sync_with_stdio
会员类别
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.
ios_base::failure
ios_base::Init
会员类型
Original:
Member types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base::openmode
ios_base::fmtflags
ios_base::iostate
ios_base::seekdir
ios_base::event
ios_base::event_callback
 
typedef /*implementation defined*/ fmtflags;
static constexpr fmtflags dec = /*implementation defined*/

static constexpr fmtflags oct = /*implementation defined*/
static constexpr fmtflags hex = /*implementation defined*/

static constexpr fmtflags basefield = /*implementation defined (dec | oct | hex)*/
static constexpr fmtflags left = /*implementation defined*/

static constexpr fmtflags right = /*implementation defined*/
static constexpr fmtflags internal = /*implementation defined*/

static constexpr fmtflags adjustfield = /*implementation defined (left | right | internal)*/
static constexpr fmtflags scientific = /*implementation defined*/

static constexpr fmtflags fixed = /*implementation defined*/

static constexpr fmtflags floatfield = /*implementation defined (scientific | fixed)*/
static constexpr fmtflags boolalpha = /*implementation defined*/

static constexpr fmtflags showbase = /*implementation defined*/
static constexpr fmtflags showpoint = /*implementation defined*/
static constexpr fmtflags showpos = /*implementation defined*/
static constexpr fmtflags skipws = /*implementation defined*/
static constexpr fmtflags unitbut = /*implementation defined*/

static constexpr fmtflags uppercase = /*implementation defined*/
指定可用的格式标记。这是一个BitmaskType,下面的常量定义
Original:
Specifies available formatting flags. It is a BitmaskType, the following constants are defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
常数
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

[编辑] 为例

[编辑] 另请参阅

管理格式的标志
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.

(公共成员函数) [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.

(公共成员函数) [edit]
clears specific format flag
(公共成员函数) [edit]
改变用于整数I / O基地
Original:
changes the base used 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]
改变填充字符
Original:
changes 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.

(函数模板) [edit]
使用的格式为浮点I / O
Original:
changes formatting used for floating-point 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]
控制是否前缀用于指示数字基
Original:
controls whether prefix is used to indicate numeric base
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
文字和数字表示的布尔值之间切换
Original:
switches between textual and numeric representation of booleans
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
控制是否+符号用于与非负数
Original:
controls whether the + sign used with non-negative numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
控制是否始终包含在浮点表示小数点
Original:
controls whether decimal point is always included in floating-point representation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
控制输出是否每次操作后冲洗
Original:
controls whether output is flushed after each operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
被跳过的输入控制是否前导空格
Original:
controls whether leading whitespace is skipped on input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
controls whether uppercase characters are used with some output formats
(函数) [edit]