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