home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 8.ddi / IOSTRSR1.ZIP / OSTASN2.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1006 b   |  28 lines

  1. /*[]-------------------------------------------------------------------[]*/
  2. /*|                                                                     |*/
  3. /*|     ostasn2.cpp                                                     |*/
  4. /*|                                                                     |*/
  5. /*|     Class ostream_withassign                                        |*/
  6. /*|     ostream_withassign& ostream_withassign::operator= ( streambuf* )|*/
  7. /*|                                                                     |*/
  8. /*[]-------------------------------------------------------------------[]*/
  9.  
  10. /*
  11.  *      C/C++ Run Time Library - Version 5.0
  12.  *
  13.  *      Copyright (c) 1990, 1992 by Borland International
  14.  *      All Rights Reserved.
  15.  *
  16.  */
  17.  
  18. #include <ioconfig.h>
  19. #include <iostream.h>
  20.  
  21. // associates streambuf with stream and does entire initialization
  22.  
  23. ostream_withassign _FAR & ostream_withassign::operator= (streambuf* s)
  24. {
  25.     ios::init(s);
  26.     return *this;
  27. }
  28.