You have to #include <iomanip> as well as #include <iostream> when you use a line of code such as
cout << setw(8)<< 123456 << endl;
but not have to #include <iomanip> when you do the exact equivalent thing in
cout.width(8);
cout << 123456 << endl;
Why is this?
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q31: What is sent to screen when the
Q32: What will be the output from
Q33: Write a function that will copy the
Q34: What happens to output when data is
Q35: Declare and open input file stream fileIn
Q37: There are three calls to member functions
Q38: Assume that your program opens a file
Q39: What output is produced by the following
Q40: What output is sent to the file
Q41: Write a code segment that will read
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents