no_catch.cpp
上传用户:dq031136
上传日期:2022-08-08
资源大小:802k
文件大小:0k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. #include <iostream.h>
  2. void main(void)
  3.  {
  4.    cout << "Start" << endl;
  5.    try 
  6.    {
  7.       cout << "Inside try block." << endl;
  8.       cout << "Still inside try block." << endl;
  9.     }
  10.    catch(int i) 
  11.    {
  12.       cout << "Caught an exception--value is: " << endl;
  13.       cout << i << endl;
  14.     }
  15.    cout << "End";
  16.  
  17.  }