home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / info / c_tutorg / tabcont.txt < prev    next >
Encoding:
Text File  |  1992-05-22  |  9.2 KB  |  183 lines

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