home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Programming / C Reference Card 2.3 / C Reference Card / C Reference Card.rsrc / TEXT_402_2.txt < prev    next >
Encoding:
Text File  |  1995-11-14  |  4.7 KB  |  140 lines

  1. KEYWORDS
  2. _________________________________________________________________________
  3.  
  4.  
  5. asm*         Identifies following statement as inline assembly language.
  6.  
  7. auto         Default function variable declaration (not normally used).
  8.  
  9. break        Skips to end of current loop.  Usually used with 'switch'.
  10.  
  11. case         Control statement used with 'switch'.
  12.  
  13. catch*       Control statement used with 'try' and 'throw' keywords to
  14.              provide exception handling.
  15.  
  16. char         Character variable type (1 byte).
  17.  
  18. class*       Identifies a class definition.
  19.  
  20. const        Qualifier that establishes a variable whose value cannot be
  21.              modified.
  22.  
  23. continue     Control statement used with 'while', 'do', and 'for'. Causes
  24.              next iteration of loop to execute immediately.
  25.  
  26. default      Control statement used with 'switch'.
  27.  
  28. delete*      Deallocates memory assigned to object.
  29.  
  30. direct**     Used with some compilers to identify a class referenced by a 
  31.              pointer.
  32.  
  33. do           Control statement.
  34.  
  35. double       Floating point variable type. Minimum of 10 digits (decimal)
  36.              precision.
  37.  
  38. else         Control statement used with 'if'.
  39.  
  40. enum         Variable type. Lets you declare symbolic names to represent
  41.              integer constants. Used to improve readability.
  42.  
  43. extern       Qualifier that identifies a variable as being defined
  44.              elsewhere in program.
  45.  
  46. float        Floating point variable type. Minimum of 6 digits (decimal)
  47.              precision.
  48.  
  49. for          Control statement.
  50.  
  51. friend*      Function and class specifier that allows access to objects
  52.              private data. 
  53.  
  54. goto         Control statement (not normally used).
  55.  
  56. if           Control statement.
  57.  
  58. indirect**   Used with some compilers to identify a class referenced by a 
  59.              handle.
  60.  
  61. inherited**  Used with some compilers to access methods of the immediate 
  62.              superclass.
  63.  
  64. inline*      Function identifier that tells compiler to treat function as
  65.              an inline function.
  66.  
  67. int          Integer variable type (minimum range is +/-32767).
  68.  
  69. long         Integer variable type (minimum range is +/-2147483647).
  70.  
  71. new*         Allocates memory for an object and returns a pointer.
  72.  
  73. operator*    Function used to overload existing operators.
  74.  
  75. private*     Default access specifier for class members.  Prevents access
  76.              outside of class.
  77.  
  78. protected*   Access specifier which allows access within class as well as
  79.              derived classes.
  80.  
  81. public*      Access specifier which allows access by functions outside of
  82.              class.
  83.  
  84. register     Register variable qualifier. Requests compiler to use CPU
  85.              registers to store variable.
  86.  
  87. return       Return variable to calling function.
  88.  
  89. short        Integer variable type (minimum range is +/-32767).
  90.  
  91. signed       Integer variable type (or qualifier when used in conjunction
  92.              with an integer other than an 'int'). Identifies that
  93.              variable can store both positive and negative numbers.
  94.  
  95. sizeof       Returns size of variable in bytes.
  96.  
  97. static       Function variable qualifier. Maintains values between 
  98.              function calls.
  99.  
  100. struct       Identifies a structure definition.
  101.  
  102. switch       Control statement. Uses 'case', 'break', and 'default'.
  103.  
  104. template*    Used to define template functions and classes which use
  105.              multiple data types.
  106.  
  107. this*        Pointer sent to member function that contains the address of
  108.              the object.
  109.  
  110. throw*       Control statement used with 'catch' and 'try' keywords to
  111.              provide exception handling.
  112.  
  113. try*         Control statement used with 'catch' and 'throw' keywords to
  114.              provide exception handling.
  115.  
  116. typedef      Defines creation of new data type (or assign new name to 
  117.              existing data type).
  118.  
  119. union        Identifies a union definition. Similar definition as 
  120.              structure, except different data types are stored in same
  121.              memory space (but not simultaneously).
  122.  
  123. unsigned     Integer variable type (or qualifier when used in conjunction
  124.              with an integer other than an 'int'). Identifies that
  125.              variable can only store positive numbers.
  126.  
  127. virtual*     Method qualifier that tells compiler to bind function at 
  128.              runtime. Also used to identify virtual classes when using
  129.              multiple inheritance.
  130.  
  131. void         Null data type.
  132.  
  133. volatile     Variable qualifier that identifies data which can be altered
  134.              by agencies other than the program.
  135.  
  136. while        Control statement used with 'do'.
  137.  
  138. _________________________________________________________________________
  139. *   C++ specific keywords (additions to straight C).
  140. **  Additional keywords available with Symantec THINK C.