Cpp Standard Library 简明教程
C++ Library - <iomanip>
Introduction
iomanip 是用于操作 C 程序输出的库。使用 C,头文件提供参数化操作符,如下所示:
iomanip is a library that is used to manipulate the output of C program. Using C, header providing parametric manipulators as shown below −
Parametric manipulators
下面是参数化操作符:
Below are the Parametric manipulators −
Sr.No. |
Method & description |
1 |
setiosflagsIt is used to Set format flags. |
2 |
resetiosflagsIt reset format flags. |
3 |
setbaseIt is used to set basefield flag. |
4 |
setfillIt is used to set fill character. |
5 |
setprecisionIt is used to set decimal precision. |
6 |
setwIt is used to set field width. |
7 |
get_moneyIt is used to get monetary value. |
8 |
put_moneyIt is used to put monetary value. |
9 |
get_time It is used to get date and time. |
10 |
put_time It is used to put date and time. |