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 >
Wrap
Text File
|
1995-03-15
|
1KB
|
28 lines
/*************************************************************************
IBM C/C++ Tools Version 3.00 - Collection Class Library
(C) Copyright IBM Corporation 1992 ,1995, Licensed Program-Property of
IBM. All Rights Reserved. US Government Users Restricted Rights - Use,
duplication or disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
*************************************************************************/
/*-------------------------------------------------------------*\
| xmulti1.CPP - Example of using the same collection from |
| multiple compilation units. |
\*-------------------------------------------------------------*/
#include <iostream.h>
#include "xmulti.h"
int xmulti2(MultiXampleStack&); // In xmulti2.C
int main()
{
MultiXampleStack mxs;
mxs.push(4711);
int i = xmulti2(mxs); // A second use of MultiXapleStack
cout << "xmulti2 returned " << i << "." << endl;
return (i != 4711);
}