Why is this?

You have to #include <;iomanip> as well as #include
when you use a line of code such as
```
cout << setw(8) << 123456 << endl;
```
but not have to #include when you do the exact equivalent thing in
```
cout.width(8);
cout << 123456 << endl;
```


Use of cout << setw(8) uses a manipulator that is not declared in iostream,
but is declared in include iomanip. The member function cout.width(int) is
already declared in iostream. There is no need to #include
with the use of the member function. Manipulators are more convenient which is why
they are provided.

Computer Science & Information Technology

You might also like to view...

The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is referred to as a __________ .

A) ?task ? B) ?resource C) ?single-threaded approach ? D) ?lightweight process

Computer Science & Information Technology

To keep track of active text segments, UNIX maintains a __________ that lists each current text segment, its primary and secondary addresses, and a count of the number of processes sharing it.

a. i-node table b. text control block c. segment table d. none of the above

Computer Science & Information Technology

Describe ACLs.

What will be an ideal response?

Computer Science & Information Technology

How many items can be selected from a ComboBox at a time?

a. 0 b. 1 c. 2 d. Unlimited

Computer Science & Information Technology