home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNPD9404.ZIP / C_PREC.TXT < prev    next >
Text File  |  1994-04-03  |  1KB  |  38 lines

  1. .I 2 3
  2.     ::        scope resolution (C++, e.g. name::member)     left-to-right
  3.     ::        global (C++, e.g. ::name)
  4.  ----------------------------------------------------------------------------
  5. .I 7 2
  6.   sizeof      size of object in bytes
  7.   sizeof      size of type in bytes
  8. .I 8 4
  9.     ++        post increment (lvalue++)                     right-to-left
  10.     ++        pre increment (++lvalue)
  11.     --        post decrement (lvalue--)
  12.     --        pre decrement (--lvalue)
  13. .D 9 1
  14. .I 10 1
  15.      !        logical not
  16. .D 13 2
  17. .I 16 3
  18.     new       create object (C++)
  19.   delete      destroy object (C++)
  20.   delete[]    destroy array (C++)
  21. .D 18 3
  22. .I 35 1
  23.     <=        scalar less than or equal to
  24. .D 37 1
  25. .I 48 3
  26.     &&        logical and                                   left-to-right
  27.  ----------------------------------------------------------------------------
  28.     ||        logical inclusive or                          left-to-right
  29. .D 49 3
  30. .I 60 7
  31.  
  32. All of the operators in this table can be overloaded (C++) except:
  33.  
  34.           .     C++ direct component selector
  35.          .*     C++ dereference
  36.          ::     C++ scope access/resolution
  37.          ?:     Conditional
  38.