//异常处理
//writed by swords 2005/3/15
#include<iostream.h>
void main()
{
cout<<"start"<<endl;
try
{
cout<<"inside try block."<<endl;
throw 200;
cout<<"this will not execute.";
}
catch(int i)
{
cout<<"catch an exeception--value is: "<<i<<endl;
}
cout<<"end!";
}