home *** CD-ROM | disk | FTP | other *** search
- Here is the function main() for this sample program. This code
- includes exception handling. The interactive driver for the
- program is the function Process(). main() invokes Process() and
- catches exceptions thrown during program execution. The DOS
- version of the program, which runs if you click on the RUN button,
- does not include exception handling. Instead, the program
- terminates if you give a command that cannot be completed. For
- example, the program will stop if you try to pop an element from an
- empty stack.
-