home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tutorial / cpptutor / text / tabcont.txt < prev   
Encoding:
Text File  |  1994-05-15  |  9.4 KB  |  201 lines

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