home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH17 / A17351.TXT < prev    next >
Encoding:
Text File  |  1993-11-25  |  531 b   |  10 lines

  1. Here is the function main() for this sample program.  This code
  2. includes exception handling.  The interactive driver for the
  3. program is the function Process().  main() invokes Process() and
  4. catches exceptions thrown during program execution.  The DOS
  5. version of the program, which runs if you click on the RUN button,
  6. does not include exception handling.  Instead, the program
  7. terminates if you give a command that cannot be completed.  For
  8. example, the program will stop if you try to pop an element from an
  9. empty stack.
  10.