Stream Input/Output Flashcards
Where does I/O occur?
In streams
What is a stream?
A sequence of bytes
Low level I/O
Device to memory
High level I/O
Bytes grouped into units (ex: integers, strings)
Unformatted vs formatted I/O
Unformatted is faster but difficult to use
Formatted requires extra processing time but is readable
How to declare all stream I/O operations?
<iostream>
</iostream>
How to declare parameterized stream manipulators?
<iomanip>
</iomanip>
basic_istream and basic_ostream
Templates for input and output respectively
Template that supports both input and output?
basic_iostream
istream object cin tied to….
standard input device (keyboard)
ostream cout tied to….
Standard output device (screen)
Unbuffered ostream output?
cerr
Buffered ostream output
clog
How are data types determined for input and output?
Automatically by compiler
How are addresses displayed?
Hexadecimal
How can you print the address in a pointer variable?
Cast pointer to void*