home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11874 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  725 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!jld2
  2. From: jld2@ns1.cc.lehigh.edu (J. Lynch Davis)
  3. Newsgroups: comp.lang.c++
  4. Subject: Passing Open Streams
  5. Message-ID: <1992Jul31.190259.32315@ns1.cc.lehigh.edu>
  6. Date: 31 Jul 92 19:02:59 GMT
  7. Organization: Lehigh University
  8. Lines: 26
  9.  
  10. If I open a stream and want to pass the stream for use in a subroutine, such
  11. as using headers and footers in files, how would they be passed?
  12.  
  13. void    maind()
  14. {
  15.     fstream out;
  16.  
  17.     out.open("filename",ios::out);
  18.  
  19.     header(  ??? out ??? );
  20.  
  21.     return;
  22. }
  23.  
  24. void    header( ??? out ???);
  25. {
  26.     ...
  27.     ...
  28.     ...
  29.     return;
  30. }
  31.  
  32. please send replies to jld2@lehigh.edu
  33.  
  34. Thanks,
  35. Lynch
  36.