home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / XMULTI / XMULTI1.CPP < prev    next >
Text File  |  1995-03-15  |  1KB  |  28 lines

  1. /*************************************************************************
  2.   IBM C/C++ Tools Version 3.00 - Collection Class Library
  3.  (C) Copyright IBM Corporation 1992 ,1995, Licensed Program-Property of
  4.  IBM.  All Rights Reserved.  US Government Users Restricted Rights - Use,
  5.  duplication or disclosure restricted by GSA ADP Schedule Contract with
  6.  IBM Corp.
  7.  *************************************************************************/
  8.  
  9. /*-------------------------------------------------------------*\
  10. |  xmulti1.CPP    -  Example of using the same collection from  |
  11. |                    multiple compilation units.                |
  12. \*-------------------------------------------------------------*/
  13.  
  14.   #include <iostream.h>
  15.  
  16.   #include "xmulti.h"
  17.  
  18.   int xmulti2(MultiXampleStack&);  // In xmulti2.C
  19.  
  20.   int main()
  21.   {
  22.     MultiXampleStack mxs;
  23.     mxs.push(4711);
  24.     int i = xmulti2(mxs);      // A second use of MultiXapleStack
  25.     cout << "xmulti2 returned " << i << "." << endl;
  26.     return (i != 4711);
  27.   }
  28.