COM1100 -- Winter2000 --
Yuhong Yin
3
File stream as function arguments
n
A file stream object can be a function
argument.
n
The only requirement is that the function’s
formal parameter be a
reference
to the
appropriate stream, either as :
n
ifstream&
n
or ofstream&