home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH03 / A03083.TXT < prev    next >
Encoding:
Text File  |  1993-08-10  |  436 b   |  8 lines

  1. Before you use an object in a C++ program, you must specify its
  2. type.  The example on the left will produce an error when you try
  3. to compile it because the main() function tries to call the
  4. function func1() before its type has been declared.  The example
  5. on the right compiles without an error because the type of
  6. func1(), namely a function that takes no arguments and has a
  7. return type of void, is declared before it is called.
  8.