![]() |
VOOZH | about |
The setiosflags() method of iomanip library in C++ is used to set the ios library format flags specified as the parameter to this method.
Syntax:
setiosflags (ios_base::format_flag)
Parameters: This method accepts format_flag as a parameter which is the ios library format flag to be set by this method.
Return Value: This method does not returns anything. It only acts as stream manipulators.
Example 1:
Setting showbase flag using setiosflags: 0x32
Example 2:
Setting showbase and uppercase flag using setiosflags: 0X32
Reference: https://cplusplus.com/reference/iomanip/setiosflags/