home *** CD-ROM | disk | FTP | other *** search
- **********************************************************************
- * DISCLAIMER OF WARRANTIES: *
- * *
- * The following enclosed code is sample code created by IBM *
- * Corporation. This sample code is not part of any standard IBM *
- * product and is provided to you solely for the purpose of assisting *
- * you in the development of your applications. The code is provided *
- * "AS IS", without warranty of any kind. IBM shall not be liable *
- * for any damages arising out of your use of the sample code, even *
- * if they have been advised of the possibility of such damages *
- * *
- **********************************************************************
-
- SAMPLE - Word Stack (pushpop)
-
- DESCRIPTION:
- This program creates two stacks (Stack1 and Stack2) using the
- default class, IStack. It adds a number of words to Stack1,
- removes them from Stack1, adds them to Stack2, and finally
- removes them from Stack2 so that they can be printed. The push()
- and pop() functions are used for adding and removing elements.
-
- TASK:
- This program uses stacks to push and pop elements.
-
- CONCEPT/FEATURE:
- This program is a sample to demonstrate the use of the default
- class IStack.
-
- HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
- From within the directory containing the sample, simply type
- the name of the executable:
-
- PUSHPOP
-
- ADDITIONAL INFORMATION:
-
- For additional information on this and other samples shipped with
- the VisualAge for C++ product, see the Guide to Samples notebook.
-
- To access the notebook from Program Manager, open the VisualAge
- for C++ product object, then open the Guide to Samples notebook.
-
-