home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / ctutor1.zip / TABCONT.TXT < prev   
Text File  |  1989-11-10  |  8KB  |  178 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                      CORONADO ENTERPRISES
  9.  
  10.                    C TUTORIAL - Version 2.4
  11.  
  12.  
  13. This documentation and the accompanying software, including all
  14. of the example C programs and text files, are protected under
  15. United States copyright law to protect them from unauthorized
  16. commercialization.  This version of the tutorial is distributed
  17. under the shareware concept, which means you are not required
  18. to pay for it.  You are permitted to copy the disks, and pass
  19. the copies on to a friend, provided that you do not modify any
  20. files or omit any files from the complete package, and you are
  21. in fact encouraged to pass on complete copies to friends.  You
  22. are permitted to charge a small fee to cover the costs of
  23. duplication, but you are not permitted to charge anything for
  24. the software itself.
  25.  
  26. If you find the tutorial helpful, you are encouraged to register
  27. with the author and to submit a small fee to help compensate him
  28. for his time and expense in writing it.  We will provide you
  29. with a beautifully printed copy of this tutorial if you submit
  30. a full registration.  See the READ.ME file on either diskette
  31. for additional details.
  32.  
  33. Whether or not you send a registration fee, feel free to request
  34. a copy of the lastest list of available tutorials and a list of
  35. the authorized Public Domain libraries that distribute our full
  36. line of programming language tutorials.
  37.  
  38.  
  39.  
  40.                 Gordon Dodrill - Nov 10, 1989
  41.  
  42.  
  43.  
  44.        Copyright (c) 1988, 1989, Coronado Enterprises
  45.  
  46.                    Coronado Enterprises
  47.                   12501 Coronado Ave NE
  48.               Albuquerque, New Mexico 87122
  49.  
  50.  
  51.                C TUTORIAL - TABLE OF CONTENTS 
  52.  
  53. Introduction                                           Page I-1
  54.  
  55. Chapter  1 - Getting started                           Page 1-1
  56.      FIRSTEX.C     The first example program              1-3
  57.  
  58. Chapter  2 - Program Structure                         Page 2-1
  59.      TRIVIAL.C     The minimum program                    2-1
  60.      WRTSOME.C     Write some output                      2-1
  61.      WRTMORE.C     Write more output                      2-2
  62.      ONEINT.C      One integer variable                   2-3
  63.      COMMENTS.C    Comments in C                          2-4
  64.      GOODFORM.C    Good program style                     2-5
  65.      UGLYFORM.C    Bad program style                      2-5
  66.  
  67. Chapter  3 - Program Control                           Page 3-1
  68.      WHILE.C       The While loop                         3-1
  69.      DOWHILE.C     The Do-While loop                      3-2
  70.      FORLOOP.C     The For loop                           3-2
  71.      IFELSE.C      The If & If-Else construct             3-3
  72.      BREAKCON.C    The Break & Continue                   3-4
  73.      SWITCH.C      The Switch construct                   3-4
  74.      GOTOEX.C      The Goto Statement                     3-5
  75.      TEMPCONV.C    The temperature conversion             3-6
  76.      DUMBCONV.C    Poor program style                     3-7
  77.  
  78. Chapter  4 - Assignment & Logical Compare              Page 4-1
  79.      INTASIGN.C    Integer assignments                    4-1
  80.      MORTYPES.C    More data types                        4-2
  81.      LOTTYPES.C    Lots of data types                     4-4
  82.      COMBINE.C     Combining different types              4-6
  83.      COMPARES.C    Logical compares                       4-7
  84.      CRYPTIC.C     The cryptic constructs                 4-11
  85.  
  86. Chapter  5 - Functions, variables, & prototyping       Page 5-1
  87.      SUMSQRES.C    First functions                        5-1
  88.      SQUARES.C     Return a value                         5-3
  89.      FLOATSQ.C     Floating returns                       5-4
  90.      SCOPE.C       Scope of variables                     5-5
  91.      RECURSON.C    Simple Recursion Program               5-9
  92.      BACKWARD.C    Another Recursion Program              5-11
  93.      FLOATSQ2.C    Floating returns with prototypes       5-12
  94.  
  95. Chapter  6 - Defines & Macros                          Page 6-1
  96.      DEFINE.C      Defines                                6-1
  97.      MACRO.C       Macros                                 6-3
  98.      ENUM.C        Enumerated type                        6-3
  99.  
  100. Chapter  7 - Strings and Arrays                        Page 7-1
  101.      CHRSTRG.C     Character Strings                      7-1
  102.      STRINGS.C     More Character strings                 7-3
  103.      INTARRAY.C    Integer Array                          7-4
  104.      BIGARRAY.C    Many Arrays                            7-4
  105.      PASSBACK.C    Getting data from Functions            7-5
  106.      MULTIARY.C    Multidimensional arrays                7-6
  107.  
  108. Chapter  8 - Pointers                                  Page 8-1
  109.      POINTER.C     Simple Pointers                        8-1
  110.      POINTER2.C    More pointers                          8-4
  111.      TWOWAY.C      Twoway Function Data                   8-6
  112.      FUNCPNT.C     A pointer to a function                8-7
  113.  
  114. Chapter  9 - Standard Input/Output                     Page 9-1
  115.      SIMPLEIO.C    Simplest standard I/O                  9-1
  116.      SINGLEIO.C    Single character I/O                   9-4
  117.      BETTERIN.C    Better form of single I/O              9-4
  118.      INTIN.C       Integer input                          9-6
  119.      STRINGIN.C    String input                           9-7
  120.      INMEM.C       In memory I/O conversion               9-9
  121.      SPECIAL.C     Standard error output                  9-10
  122.  
  123. Chapter 10 - File Input/Output                         Page 10-1
  124.      FORMOUT.C     Formatted output                      10-1
  125.      CHAROUT.C     Single character output               10-3
  126.      READCHAR.C    Read single characters                10-4
  127.      READTEXT.C    Read single words                     10-5
  128.      READGOOD.C    Better read and display               10-6
  129.      READLINE.C    Read a full line                      10-6
  130.      ANYFILE.C     Read in any file                      10-6
  131.      PRINTDAT.C    Output to the printer                 10-7
  132.  
  133. Chapter 11 - Structures                                Page 11-1
  134.      STRUCT1.C     Minimum structure example             11-1
  135.      STRUCT2.C     Array of structures                   11-2
  136.      STRUCT3.C     Structures with pointers              11-3
  137.      NESTED.C      Nested structure                      11-5
  138.      UNION1.C      An example union                      11-7
  139.      UNION2.C      Another Union example                 11-8
  140.      BITFIELD.C    Bitfield example                      11-10
  141.  
  142. Chapter 12 - Dynamic Allocation                        Page 12-1
  143.      DYNLIST.C     Simple Dynamic Allocation             12-1
  144.      BIGDYNL.C     Large Dynamic Allocation              12-5
  145.      DYNLINK.C     Dynamic Linked List Program           12-6
  146.  
  147. Chapter 13 - Character and Bit Manipulation            Page 13-1
  148.      UPLOW.C       Upper/Lower Case Text                 13-1
  149.      CHARCLAS.C    Character Classification              13-1
  150.      BITOPS.C      Logical Bit Operations                13-2
  151.      SHIFTER.C     Bit Shifting Operations               13-3
  152.  
  153. Chapter 14 - Example programs                          Page 14-1
  154.      DOSEX.C       DOS call examples                     14-2
  155.      WHATNEXT.C    Ask Question in Batch File            14-3
  156.      LIST.C        Source Code Lister                    14-4
  157.      VC.C          Visual Calculator                     14-5
  158.  
  159.  
  160.  
  161. ABOUT THE AUTHOR
  162. ___________________________________________________________
  163.  
  164. The author of this tutorial began programming in 1961 using
  165. FORTRAN on an IBM 1620.  Since then, most of his career has
  166. been involved with designing digital logic for satellite
  167. application.  In 1983, being somewhat burned out with logic
  168. design, he began a study of some of the more modern
  169. programming languages and has since made a complete career
  170. shift to software development.  After learning Pascal, C was
  171. studied, followed by Modula-2 and Ada, and more recently C++. 
  172. Rather than simply learning the syntax of each new language,
  173. modern methods of software engineering were studied and
  174. applied to effectively utilize the languages.  He is
  175. currently employed by a large research and development
  176. laboratory where he continues to study, teach, and apply the
  177. newer programming languages.
  178.