home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH02 / A020826.TXT < prev    next >
Encoding:
Text File  |  1993-11-15  |  316 b   |  6 lines

  1. As in ANSI C, you must declare an object in C++ before you can use
  2. it.  In C++, declarations can be placed anywhere in the program.
  3. In this program, three integers are defined:  "a", "b", and "d".
  4. Their definitions are identical C definitions.  Notice that "d"
  5. is declared in the middle of the main() function.
  6.