home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / CPTUTT22.ZIP / TABCONT.TXT < prev   
Text File  |  1992-01-20  |  10KB  |  197 lines

  1.  
  2.  
  3.  
  4.                       CORONADO ENTERPRISES
  5.                      C++ TUTOR - Version 2.2
  6.  
  7.  
  8. This documentation and the accompanying software, including all of
  9. the example C++ programs and text files, are protected under United
  10. States copyright law to protect them from unauthorized
  11. commercialization.  This version of the tutorial is distributed
  12. under the shareware concept, which means you are not required to
  13. pay for it.  You are permitted to copy the disks, and pass the
  14. copies on to a friend, provided that you do not modify any files
  15. or omit any files from the complete package.  You are, in fact,
  16. encouraged to pass on complete copies to friends.  You are
  17. permitted to charge a small fee to cover the costs of duplication,
  18. but you are not permitted to charge anything for the software
  19. itself.
  20.  
  21. If you find the tutorial helpful, you are encouraged to register
  22. with the author and to submit a small fee to help compensate him
  23. for his time and expense in writing it.  We will provide you with
  24. a beautifully printed copy of the tutorial if you submit a full
  25. registration.  See the READ.ME file on either diskette for
  26. additional details.
  27.  
  28. Whether or not you send a registration fee, feel free to request
  29. a copy of the latest list of available tutorials and a list of the
  30. authorized Shareware libraries that distribute our full line of
  31. programming language tutorials.
  32.  
  33.  
  34.                   Gordon Dodrill - Jan 20, 1992
  35.  
  36.  
  37.  
  38.        Copyright (c) 1989, 1990, 1992  Coronado Enterprises
  39.  
  40.  
  41.                       Coronado Enterprises
  42.                      12501 Coronado Ave NE
  43.                   Albuquerque, New Mexico 87122
  44.  
  45.  
  46.  
  47.              C++ TUTORIAL - TABLE OF CONTENTS
  48.  
  49. Introduction                                         Page I-1
  50.  
  51. Chapter  1 - Simple Things                           Page 1-1
  52.      CONCOM.CPP     Constants and comments              1-1
  53.      SCOPEOP.CPP    Scope operator                      1-3
  54.      MESSAGE.CPP    The stream library                  1-3
  55.      FSTREAM.CPP    File streams                        1-5
  56.      VARDEF.CPP     Variable definitions                1-6
  57.  
  58. Chapter  2 - Compound Types                          Page 2-1
  59.      ENUM.CPP       The enumerated type                 2-1
  60.      STRUCTUR.CPP   The structure                       2-1
  61.      CLASS1.CPP     The class                           2-2
  62.      UNIONEX.CPP    The union                           2-3
  63.      TYPECONV.CPP   Type conversions                    2-3
  64.  
  65. Chapter  3 - Pointers                                Page 3-1
  66.      POINTERS.CPP   Using Pointers                      3-1
  67.      NEWDEL.CPP     New and delete operators            3-2
  68.      FUNCPNT.CPP    Function pointers                   3-4
  69.  
  70. Chapter  4 - Functions                               Page 4-1
  71.      PROTYPE1.CPP   Using prototypes                    4-1
  72.      PROTYPE2.CPP   Using prototypes                    4-3
  73.      PASSREF.CPP    Pass by reference                   4-4
  74.      DEFAULT.CPP    Parameter defaults                  4-5
  75.      VARARGS.CPP    Variable number of arguments        4-6
  76.      OVERLOAD.CPP   Overloading function names          4-7
  77.  
  78. Chapter  5 - Encapsulation                           Page 5-1
  79.      OPEN.CPP       No information hiding               5-1
  80.      CLAS.CPP       Information hiding                  5-2
  81.      OPENPOLE.CPP   Corruptible data                    5-6
  82.      CLASPOLE.CPP   Protected data                      5-7
  83.      CONSPOLE.CPP   Constructors and destructors        5-9
  84.      BOXES1.CPP     All in one file                     5-10
  85.      BOX.H          Box interface                       5-11
  86.      BOX.CPP        Box implementation                  5-11
  87.      BOXES2.CPP     Using the box class                 5-12
  88.      DATE.H         The date class header               5-15
  89.      DATE.CPP       The date implementation             5-15
  90.      USEDATE.CPP    Using the date class                5-16
  91.  
  92. Chapter  6 - More encapsulation                      Page 6-1
  93.      OBJARRAY.CPP   An Array of objects                 6-1
  94.      OBJSTRNG.CPP   An object with a string             6-3
  95.      OBJINTPT.CPP   An object with a pointer            6-3
  96.      OBJDYNAM.CPP   Dynamic allocation of objects       6-5
  97.      OBJLIST.CPP    Embedded pointers                   6-5
  98.      OBJLINK.CPP    Linked list of objects              6-7
  99.      NESTING.CPP    Nested classes                      6-8
  100.      OPOVERLD.CPP   Operator overloading                6-9
  101.      FUNCOVER.CPP   Function name overloading           6-11
  102.  
  103.  
  104. Chapter  6 - More encapsulation (Continued)          Page 6-1
  105.  
  106.      TIME.H         The time class header               6-12
  107.      TIME.CPP       The time implementation             6-12
  108.      USETIME.CPP    Using the time class                6-12
  109.  
  110. Chapter  7 - Inheritance                             Page 7-1
  111.      VEHICLE.H      Vehicle interface                   7-1
  112.      VEHICLE.CPP    Vehicle implementation              7-2
  113.      TRANSPRT.CPP   Using the vehicle class             7-2
  114.      CAR.H          Car interface                       7-3
  115.      CAR.CPP        Car implementation                  7-4
  116.      TRUCK.H        Truck interface                     7-5
  117.      TRUCK.CPP      Truck implementation                7-5
  118.      ALLVEHIC.CPP   Use of car, truck, & vehicle        7-5
  119.      NEWDATE.H      The newdate class header            7-7
  120.      NEWDATE.CPP    The newdate implementaion           7-7
  121.      TRYNDATE.CPP   Using the newdate class             7-8
  122.  
  123. Chapter  8 - More inheritance                        Page 8-1
  124.      INHERIT1.CPP   Using public                        8-1
  125.      INHERIT2.CPP   Omitting public                     8-2
  126.      INHERIT3.CPP   Intra class messages                8-3
  127.      INHERIT4.CPP   Without protected                   8-4
  128.      INHERIT5.CPP   Using protected                     8-5
  129.      INHERIT6.CPP   Using Constructors                  8-5
  130.      INHERIT7.CPP   Arrays and pointers                 8-6
  131.  
  132. Chapter  9 - Multiple Inheritance                    Page 9-1
  133.      MULTINH1.CPP   Multiple inheritance                9-2
  134.      MULTINH2.CPP   Duplicate method names              9-3
  135.      MULTINH3.CPP   Duplicate variable names            9-4
  136.      DATETIME.H     Datetime class header               9-4
  137.      USEDTTM.CPP    Using the datetime class            9-6
  138.      TEMPLAT1.CPP   Simple template example             9-7
  139.      TEMPLAT2.CPP   Strings template example            9-7
  140.      TEMPLAT3.CPP   Class template example              9-8
  141.  
  142. Chapter 10 - Virtual functions                       Page 10-1
  143.      VIRTUAL1.CPP   The starting point                 10-1
  144.      VIRTUAL2.CPP   Adding virtual                     10-2
  145.      VIRTUAL3.CPP   Using pointers to subclasses       10-3
  146.      VIRTUAL4.CPP   Using virtual                      10-3
  147.      VIRTUAL5.CPP   Using pointers to parent class     10-4
  148.      VIRTUAL6.CPP   True virtual functions             10-5
  149.  
  150. Chapter 11 - More Virtual Functions                  Page 11-1
  151.      PERSON.H       Person header                      11-1
  152.      PERSON.CPP     Person implementation              11-2
  153.      SUPERVSR.H     Personnel header                   11-2
  154.      SUPERVSR.CPP   Personnel implementation           11-2
  155.      EMPLOYEE.CPP   A simple user program              11-3
  156.      ELEMLIST.H     Linked list header                 11-4
  157.      ELEMLIST.CPP   Linked list implementation         11-5
  158.      EMPLOYE2.CPP   A better user program              11-5
  159.  
  160.  
  161. Chapter 12 - Flyaway adventure game                  Page 12-1
  162.      FLYAWAY.EXE    Flyaway executable                 12-1
  163.      FLYAWAY.H      Global definitions                 12-3
  164.      CLOCK.H        Clock header                       12-3
  165.      CLOCK.CPP      Clock implementation               12-3
  166.      WORDS.H        Command parsing header             12-4
  167.      WORDS.CPP      Command parsing code               12-4
  168.      ITEMS.H        Moveable items header              12-4
  169.      ITEMS.CPP      Items implementation               12-4
  170.      SCHEDULE.H     Scheduler header                   12-5
  171.      SCHEDULE.CPP   Scheduler implementation           12-5
  172.      LOCATION.H     Locations header                   12-6
  173.      LOCATION.CPP   Locations implementation           12-6
  174.      MESSAGE.TXT    String messages                    12-7
  175.      FLYAWAY.CPP    Main program                       12-7
  176.      MAP.H          Airport map header                 12-8
  177.      MAP.CPP        Airport map implementation         12-8
  178.  
  179.  
  180.  
  181. ABOUT THE AUTHOR
  182. _________________________________________________________________
  183.  
  184. The author of this tutorial began programming in 1961 using FORTRAN
  185. on an IBM 1620.  Since then, most of his career has been involved
  186. with designing digital logic for satellite application.  In 1983,
  187. being somewhat burned out with logic design, he began a study of
  188. some of the more modern programming languages and has since made
  189. a complete career shift to software development.  After learning
  190. Pascal, C was studied, followed by Modula-2 and Ada, and more
  191. recently C++.  Rather than simply learning the syntax of each new
  192. language, modern methods of software engineering were studied and
  193. applied to effectively utilize the languages.  He is currently
  194. employed by a large research and development laboratory where he
  195. continues to study, teach, and apply the newer programming
  196. languages.
  197.