Question: what is iomanip used for in c++?
Answer: The header <iomanip> is part of the Input/output library of the C++ Standard Library. It defines the manipulator functions resetiosflags() , setiosflags() , setbase() , setfill() , setprecision() , and setw() . These functions may be conveniently used by C++ programs to affect the state of iostream objects.