This preview shows page 1. Sign up to view the full content.
Unformatted text preview: e. ofstream ost.open(input.txt); 11. An ostream a. Turns values of various types into character sequences b. Turns character sequences into values of various types c. Unlike an istream, an ostream does not use buffers, since it is bringing bytes directly into the computer there is no reason to waste the time of storing them into a buffer first. d. Sends characters somewhere, such as a console, a file, the main memory, or another computer. e. Both (a) and (d) are true 12. What is printed by cout << 123456 << \n << setw(4) << 123456; a. 123456 1234 b. 123456 3456 c. 123456 <Too Big> d. 123456 setw( ) will adjust the spacing for output smaller than the specified width 123456...
View Full Document
This note was uploaded on 02/18/2012 for the course CSCE 121 taught by Professor Walter daugherity during the Fall '09 term at Texas A&M.
- Fall '09
- Walter Daugherity