home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c040 / 1.ddi / SAMPLES / SAMPLES.DO$ / SAMPLES.bin
Encoding:
Text File  |  1990-03-02  |  3.1 KB  |  68 lines

  1.                                SAMPLES.DOC File
  2.  
  3.                        QuickC (R) Compiler, Version 2.00
  4.  
  5. ===========================< Samples List >================================
  6.  
  7. In addition to the reference and "C For Yourself" examples in the QC
  8. Advisor, the following sample programs are provided with QuickC.
  9.  
  10.      Files              Description
  11.      -----              -----------
  12.  
  13.      GRDEMO.MAK         GRDEMO illustrates general graphics techniques
  14.      GRDEMO.C           including drawing, animation, palette
  15.      MENU.C             switching, window adjustment, menus, mouse,
  16.      MENU.H             and turtle graphics. The MENU, MOUSE, and TURTLE
  17.      MOUSE.C            modules are independent modules that could be
  18.      MOUSE.H            used in your own programs.
  19.      TURTLE.C
  20.      TURTLE.H
  21.  
  22.      LIFE.MAK           LIFE illustrates general C and inline assembler
  23.      LIFE.C             techniques. In particular, it shows how to write
  24.      TOOLS.C            entire screens to the screen buffer. The TOOLS
  25.      TOOLS.H            module contains independent functions and
  26.                         macros that could be used in your own programs.
  27.  
  28.  
  29.      CHRTDEMO.MAK       CHRTDEMO illustrates presentation graphics
  30.      CHRTDEMO.C         techniques. You can use this program as a tool
  31.      CHRTSUPT.C         for testing different modes and options before
  32.      CHRTOPT.C          building them into your own programs.
  33.      CHRTDEMO.H
  34.  
  35. ======================< Note on Graphics Libraries >=======================
  36.  
  37. GRDEMO and LIFE require GRAPHICS.LIB. CHRTDEMO requires GRAPHICS.LIB
  38. and PGCHART.LIB. If you did not request these libraries in your
  39. combined library files during setup, you will get "unresolved
  40. external" linker errors when you try to compile the programs.
  41.  
  42. If you are using the QC environment, you must add the appropriate
  43. library names to the program list (.MAK) files. For example, if you
  44. want to compile LIFE, select Edit Program List from the Make menu. A
  45. dialog box will appear showing the contents of the LIFE.MAK program
  46. list. Enter the name GRAPHICS.LIB at the File Name prompt and select
  47. the Save List button.
  48.  
  49. If you are using QCL, specify the library names on the command line.
  50. For example, use this command line to compile LIFE:
  51.  
  52.         QCL life.c tools.c graphics.lib
  53.  
  54.  
  55. ======================< Note on Naming Conventions >=======================
  56.  
  57. Two example programs, CHRTDEMO and GRDEMO, use a subset of the naming
  58. conventions used in OS/2 and Windows include files. In this
  59. convention, the first character of an identifier is a lowercase letter
  60. called a prefix. Common prefixes include p (pointer), a (array), i
  61. (index), and c (count). After the prefix, there may be an additional
  62. lowercase tag, usually indicating type. Common tags include ch (char),
  63. f (flag), sz (zero-terminated string) l (long), and x or y (x or y
  64. coordinate). Following this there may be one or more qualifiers, each
  65. beginning with an uppercase letter. For example, an identifier called
  66. achFileName is an array (a) of characters (ch) containing a file name
  67. (FileName).
  68.