English 中文(简体)
C++ Library - <iomanip>
  • 时间:2024-12-22

C++ Library - <iomanip>


Previous Page Next Page  

Introduction

iomanip is a pbrary 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 setiosflags

It is used to Set format flags.

2 resetiosflags

It reset format flags.

3 setbase

It is used to set basefield flag.

4 setfill

It is used to set fill character.

5 setprecision

It is used to set decimal precision.

6 setw

It is used to set field width.

7 get_money

It is used to get monetary value.

8 put_money

It 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.

Advertisements