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) unsetf(ios::showpos);

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...

An overloaded + operator takes a class object and a double as operands. For it to be commutative (i.e., a + b and b + a both work):

a. operator+ must be a member function of the class from which the objects are instantiated. b. operator+ must be a non-member function. c. It must be overloaded twice; the operator+ function that takes the object as the left operand must be a member function, and the other operator+ function must be a global function. d. The + operator cannot be overloaded to be commutative.

Computer Science & Information Technology

Given the definitions,

``` int *p1, *p2; p1 = new int; p2 = new int; ``` You are to compare and contrast the two assignments. ``` a) p1 = p2; b) *p1 = *p2 ``` What will be an ideal response?

Computer Science & Information Technology

In the hierarchy chart, files are opened:

a. In the Initialization Section b. In the Process Section c. In the Termination Section. d. Wherever you want. e. None of the above.

Computer Science & Information Technology

SharePoint ________ include Approval, Collect Feedback, Collect Signatures, Three-State, and Publishing Approval

Fill in the blank(s) with correct word

Computer Science & Information Technology