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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| управляет форматом флаги 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. (public функция-член) | |
| clears specific format flag (public функция-член) | |