Ch. 3.7: Formatting Output Flashcards

1
Q

What is formatting?

A

The way a value is printed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the setprecision manipulator?

A

You can control the number of significant digits with which floating-point values are displayed by using the setprecision manipulator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is fixed point notation?

A

Forces cout to print all floating point numbers that are subsequently printed to be displayed with the number of digits to the right of the decimal point specified.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the showpoint manipulator?

A

If we want the numbers padded with trailing zeros, we must use the showpoint manipuator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the left and right manipulators?

A

Allows your values to be right or left justified, or aligned to the right of left of it print field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly