home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / sumup / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.1 KB  |  51 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 - SumUp
  15.  
  16.    DESCRIPTION:
  17.         This program uses a bag in which it stores integers. Then the
  18.         program iterates over the bag in two different ways:
  19.  
  20.         o   An Iterator Object is used to iterate over the bag to obtain
  21.             the sum of the contained integers.
  22.         o   An Iterator Function is used to iterate over the bag to
  23.             obtain the sum of the contained integers.
  24.  
  25.         If, for example you want to store and add the integers 1, 3, 4,
  26.         7, you invoke the program with the following command:
  27.  
  28.              sumup 1 3 4 7
  29.  
  30.    TASK:
  31.         This program iterates over a collection in different ways.
  32.  
  33.    CONCEPT/FEATURE:
  34.         This program is a sample to demonstrate the use of an iterator
  35.         object and an iterator function.
  36.  
  37.    HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
  38.        From within the directory containing the sample, simply type
  39.        the name of the executable:
  40.  
  41.                  SUMUP
  42.  
  43.    ADDITIONAL INFORMATION:
  44.  
  45.         For additional information on this and other samples shipped with
  46.         the VisualAge for C++ product, see the Guide to Samples notebook.
  47.  
  48.         To access the notebook from Program Manager, open the VisualAge
  49.         for C++ product object, then open the Guide to Samples notebook.
  50.  
  51.