home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / pushpop / readme.txt < prev   
Encoding:
Text File  |  1996-02-22  |  1.9 KB  |  44 lines

  1. **********************************************************************
  2. * DISCLAIMER OF WARRANTIES:                                          *
  3. *                                                                    *
  4. * The following enclosed code is sample code created by IBM          *
  5. * Corporation.  This sample code is not part of any standard IBM     *
  6. * product and is provided to you solely for the purpose of assisting *
  7. * you in the development of your applications.  The code is provided *
  8. * "AS IS", without warranty of any kind.  IBM shall not be liable    *
  9. * for any damages arising out of your use of the sample code, even   *
  10. * if they have been advised of the possibility of such damages       *
  11. *                                                                    *
  12. **********************************************************************
  13.  
  14. SAMPLE - Word Stack (pushpop)
  15.  
  16.    DESCRIPTION:
  17.         This program creates two stacks (Stack1 and Stack2) using the
  18.         default class, IStack. It adds a number of words to Stack1,
  19.         removes them from Stack1, adds them to Stack2, and finally
  20.         removes them from Stack2 so that they can be printed. The push()
  21.         and pop() functions are used for adding and removing elements.
  22.  
  23.    TASK:
  24.         This program uses stacks to push and pop elements.
  25.  
  26.    CONCEPT/FEATURE:
  27.         This program is a sample to demonstrate the use of the default
  28.         class IStack.
  29.  
  30.    HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
  31.        From within the directory containing the sample, simply type
  32.        the name of the executable:
  33.  
  34.                  PUSHPOP
  35.  
  36.    ADDITIONAL INFORMATION:
  37.  
  38.         For additional information on this and other samples shipped with
  39.         the VisualAge for C++ product, see the Guide to Samples notebook.
  40.  
  41.         To access the notebook from Program Manager, open the VisualAge
  42.         for C++ product object, then open the Guide to Samples notebook.
  43.  
  44.