Stream Manipulators:
- The setw() method of iomaip library in C++ is used to set the ios library field width based on the width specified as the parameter to this method.
- setw(n) sets the minimum width of the input for the next stream operation.
Example:
Use of iomanip in C++ Programming Language |
Output:
Output of iomanip in C++ Programming Language |
0 Comments