To reset the format state of the output stream:

a. Call the reset member function.
b. Call the flags member function with the ios_base::fmtflags constant as the argument.
c. Save a copy of the fmtflags value returned by calling member function flags before making any format changes, and then call flags again with that fmtflags value as the argument.
d. You must manually apply each individual format change member function or stream manipulator to restore the default format state.


c. Save a copy of the fmtflags value returned by calling member function flags before making any format changes, and then call flags again with that fmtflags value as the argument.

Computer Science & Information Technology

You might also like to view...

When creating a class, rather than declaring completely new members, you can designate that the new class inherits the members of an existing class. The existing class is called the __________ class, and the new class is the __________ class.

a) derived, base b) root, child c) sub, super d) base, derived

Computer Science & Information Technology

A BSS is served by one or more APs.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A ____ is a word related to the subject of a search.

A. template B. navigator C. keyword D. code word

Computer Science & Information Technology

Which of the following is the postfix form of the infix expression: a * b – (c + d)?

a) a b c d + – b) a b c d + – c) a b c – d + d) a b c – d +

Computer Science & Information Technology