home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / cininit.cpp < prev    next >
C/C++ Source or Header  |  1998-06-17  |  693b  |  25 lines

  1. /***
  2. *cininit.cpp - definitions and initialization for predefined stream cin.
  3. *
  4. *       Copyright (c) 1991-1997, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *       Definitions and initialization of predefined stream cin.
  8. *
  9. *******************************************************************************/
  10. #include <cruntime.h>
  11. #include <internal.h>
  12. #include <iostream.h>
  13. #include <fstream.h>
  14. #include <dbgint.h>
  15. #pragma hdrstop
  16.  
  17. // put contructors in special MS-specific XIFM segment
  18. #pragma warning(disable:4074)   // ignore init_seg warning
  19. #pragma init_seg(compiler)
  20.  
  21. istream_withassign cin(_new_crt filebuf(0));
  22.  
  23. static Iostream_init  __InitCin(cin);
  24.  
  25.