home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / authors / authors2 / readme.txt < prev    next >
Encoding:
Text File  |  1996-02-20  |  3.5 KB  |  89 lines

  1. ===========================================================================
  2. IBM Confidential
  3.  
  4. (C) Copyright IBM Corp. 1995.  All Rights Reserved.
  5. US Government Users Restricted Rights - Use, duplication or disclosure
  6. restricted by GSA ADP Schedule Contract with IBM Corp.
  7. ===========================================================================
  8.  
  9. **********************************************************************
  10. * DISCLAIMER OF WARRANTIES:                                          *
  11. *                                                                    *
  12. * The following enclosed code is sample code created by IBM          *
  13. * Corporation.  This sample code is not part of any standard IBM     *
  14. * product and is provided to you solely for the purpose of assisting *
  15. * you in the development of your applications.  The code is provided *
  16. * "AS IS", without warranty of any kind.  IBM shall not be liable    *
  17. * for any damages arising out of your use of the sample code, even   *
  18. * if they have been advised of the possibility of such damages       *
  19. *                                                                    *
  20. **********************************************************************
  21.  
  22. SAMPLE NAME: SAMPLE06 - Authors
  23.                                                                        
  24. DESCRIPTION:                                                           
  25.  
  26.    The authors samples are two implementations of an application that 
  27.    stores authors names and book titles into a container and then     
  28.    prints the contents of the container. 
  29.  
  30.    The container (an n-ary tree) and data (the TreeData class) are defined
  31.    separately, and then the data is introduced into the container. There
  32.    are two ways to accomplish this:
  33.  
  34.    1- The TreeData class is 'joined' in the Tree classes by the DataInTree
  35.       class. DataInTree is derived from TreeNode, and has a data member that
  36.       is a TreeData object.
  37.    
  38.    2- Define an n-ary tree of TreeData. This is done using templates.
  39.  
  40.    Authors1 uses method 1 and Authors2 uses method 2.
  41.  
  42. TASK:
  43.  
  44.    Store or print authors' names and books titles. 
  45.  
  46. CONCEPT/FEATURE:                                                        
  47.  
  48.    Shows building two identical data manipulation applications, one   
  49.    that uses basic C++ class and one that uses the C++ template       
  50.    mechanism.                            
  51.    
  52. HOW TO RUN THE SAMPLE FROM THE COMMAND LINE:
  53.  
  54.    To build and run the Authors1 sample, enter the following:
  55.    
  56.       cd X:\ibmcppw\samples\compiler\author\authors1
  57.       nmake
  58.       authors1
  59.  
  60.    where X: is the drive you installed the samples component of
  61.    VisualAge for C++.
  62.  
  63.    To build and run the Authors2 sample, enter the following:
  64.    
  65.       cd X:\ibmcppw\samples\compiler\author\authors2
  66.       nmake
  67.       authors2
  68.  
  69.    where X: is the drive you installed the samples component of
  70.    VisualAge for C++.
  71.  
  72. HOW TO RUN THE SAMPLE FROM WITHIN THE WorkFrame ENVIRONMENT:
  73.  
  74.    To build the sample, click the "Build normal" button on the project's
  75.    toolbar or from the Project pulldown, select "Build normal"
  76.  
  77.    To execute the sample, click the "Run" button on the project's toolbar.
  78.  
  79.  ADDITIONAL INFORMATION
  80.  
  81.    For additional information on this and other samples shipped
  82.    with the VisualAge for C++ product, please see the Guide to Samples
  83.    notebook.
  84.  
  85.    To access the notebook from Program Manager, open the
  86.    VisualAge for C++ product object, then open the Guide to Samples
  87.    notebook.
  88.  
  89.