To clear the show plus sign flag but leave the rest of the flags alone, you use the _____________ member function and argument.

a. setf(! ios::showpos);
b. setprecision(ios::showpos);
c. unsetf(ios::showpos);
d. setf(ios::showneg);
e. unsetf(! ios::showneg);

c).
Explanation: Part a) doesn’t do much in my program written to check this. Part b) setprecision is a manipulator, not a member. Part c) clears the flag for ios::showpos. Part d) attempts to do a “double negative” to clear the showpos flag.

Computer Science & Information Technology

You might also like to view...

The Offset Top spin box adjusts the border size

Indicate whether the statement is true or false

Computer Science & Information Technology

Print to XPS is a type of virtual printing

Indicate whether the statement is true or false

Computer Science & Information Technology