ch 3 Flashcards
stream
sequence of characters from source to destination
stream member functions (stream functions)
I/O functions such as “get”
stream variables
either an input stream variable or an output stream variable
predefined functions
functions already defined in C++
parameterized stream manipulators
manipulators with parameters
output stream variables
variables of type “ostream”
output stream
sequence of characters from the computer to the output device
opening a file
associating a file stream with an input or output source
member access operator
dot operator in C++
“istream” member functions
functions that are associated with the data type “istream”
input stream variables
variables of the type “istream”
input stream
sequence of characters from an input device to the computer
input failure
situation in which program fails to compile, or yields incorrect results, because the input data does not match the corresponding variables in the program
function call
expression that transfers control from the main function to the first statement in the body of the function such as “pow(2,3)”
file stream variables
user defined variables including “ifstream” and “ofstream” used for input and output
file
area in secondary storage used to hold information
fail state
state an input stream enters after input failure in which all further I/O statements using that stream are ignored
dot notation
notation in which a dot separates the input stream variable name from the member/ function name
common output
“cout”
common input
“cin”
arguments
- parameters
- values that are passed in a function call in the parentheses after the name of the function