home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!jld2
- From: jld2@ns1.cc.lehigh.edu (J. Lynch Davis)
- Newsgroups: comp.lang.c++
- Subject: Passing Open Streams
- Message-ID: <1992Jul31.190259.32315@ns1.cc.lehigh.edu>
- Date: 31 Jul 92 19:02:59 GMT
- Organization: Lehigh University
- Lines: 26
-
- If I open a stream and want to pass the stream for use in a subroutine, such
- as using headers and footers in files, how would they be passed?
-
- void maind()
- {
- fstream out;
-
- out.open("filename",ios::out);
-
- header( ??? out ??? );
-
- return;
- }
-
- void header( ??? out ???);
- {
- ...
- ...
- ...
- return;
- }
-
- please send replies to jld2@lehigh.edu
-
- Thanks,
- Lynch
-