std::ios_base::setf
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| fmtflags setf( fmtflags flags ); |
(1) | |
| fmtflags setf( fmtflags flags, fmtflags mask ); |
(2) | |
设置的格式标记来指定的设置.
1) Original:
Sets the formatting flags to specified settings.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
的格式标志设置标志
2) Original:
Sets the formatting flags to flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
清除
mask下,格式化标志清除的标志,并设置由flags指定的那些。本质上,以下的操作被执行 (flags & mask)fl定义内部格式化标志的状态.Original:
Clears the formatting flags under
mask, and sets the cleared flags to those specified by flags. Essentially the following operation is performed (flags & mask) where fl defines the state of internal formatting flags.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| flags, mask | - | 新的格式设置。
mask定义可以改变的标志,flags定义那些被改变的标志应设置(其他将被清除)。这两个参数可以是以下常量的组合:
Original: new formatting setting. mask defines which flags can be altered, flags defines which flags of those to be altered should be set (others will be cleared). Both parameters can be a combination of the following constants:
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[编辑] 返回值
之前,调用该函数的格式标记
Original:
the formatting flags before the call to the function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 管理格式的标志 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. (公共成员函数) | |
| clears specific format flag (公共成员函数) | |