home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv7.zip / VACPP / IBMCPP / tutorial / ICLCC / TUTOR4 / TUTOR4.TXT < prev   
Text File  |  1995-05-10  |  722b  |  21 lines

  1. /*************************************************************************
  2.  
  3.  IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3
  4.   - Collection Class Library -
  5.  
  6.  (C) Copyright IBM Corp. 1991, 1995.
  7.   - Licensed Material - Program-Property of IBM - All Rights Reserved.
  8.  
  9.  *************************************************************************/
  10.  
  11. Tutorial 4: Use Exceptions
  12.  
  13. You want to program using excpetions.
  14.  
  15. 1) Write a try block around the given statements.
  16. 2) Catch the exception and print out the name of the exception.
  17. 3) What do you have to do, that this exception will not be thrown?
  18. 4) What different exceptions levels can be turned on and off?
  19.  
  20. Have a look at the results with your debugger.
  21.