Manipulators With Multiple Parameters
In this type of manipulators, multiple arguments are passed to the manipulator. The following program explains it.
Explanation: The above program is similar to the previous one. The only difference is that here two parameters are used. The user-defined manipulator is assigned two integer values. The first argument decides the number of spaces and the second argument decides the number of decimal places. After initializing the w_p structure, the constructor is called. The constructor creates and returns a _OMANIP object. The output of the program is shown above.