std::ios_base::width
来自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. |
| streamsize width() const; |
(1) | |
| streamsize width( streamsize new_width ); |
(2) | |
Manages the minimum number of characters to generate on certain output conversions.
1) Returns the current field width.
2)設置給定的精度.
Original:
Sets the precision to the given one.
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.
目錄 |
[编辑] 參數
| new_width | - | new field width setting |
[编辑] 返回值
the field width before the call to the function
[编辑] 為例
| 本節是不完整的 原因: no example |
[编辑] 另請參閱
| 管理小數精度浮點運算 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. (公共成員函數) | |