Object Oriented Programming20815 marksStream manipulators
Illustrate the use of set w and set precision with example.
Illustrate the use of set w and set precision with example. [5]
setw and setprecision are output formatting manipulators defined in the header file <iomanip. They are used to control the appearance of output in C++. --- - Sets the minimum field width for the next output value. - The output is right-aligned by default within the specified width. - It applies o...