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

1. Setting the width of output with the manipulator setw is different from setting the width with the width member function.

2. If the output is too wide for the width specified in a setw manipulator or a call to the width member function, then the output is lost.


1. False
Explanation: These are just two ways to call the same function. The setw manipulator passes the address of the width member function to the stream with parameters and the stream knows to execute the function.. Calling the member function width just avoids one step in the process.
2. False
Explanation: If the output needs more space than you provide in a width member function or a setw manipulator invocation, the output takes all the room it needs. This messes up your formatting but it does output your data, so you can fix things.

Computer Science & Information Technology

You might also like to view...

How can computers represent pictures as numbers?

What will be an ideal response?

Computer Science & Information Technology

________ refers to how data are positioned in cells

Fill in the blank(s) with correct word

Computer Science & Information Technology

Why is an Access database called a relational database?

a. Access tables can have multiple rows. b. Access tables can connect to other tables. c. Access databases can have multiple tables. d. Access databases can share data with other programs.

Computer Science & Information Technology

In the weighted point evaluation method, each evaluator's score (points) is multiplied by a criterion's ____________________ to arrive at a score for each of the selection criteria.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology