Flags and manipulators
In general, flags affect the appearance or format of a stream, whereas manipulators affect the contents (add or remove characters to the stream).
Example of flags: fixed, left, right
Usage of flags: cout.setf(ios::right); cout << “abc”<< setw(6) << “abc” <<“abc”;
Example of manipulators: endl, setprecision, setw
Usage of manipulators: cout << setprecision(3) << x << endl;