#include<stdio.h>
#include<iostream>
using namespace std;
int main( )
{
try
{
throw "嗨 ! 我引发了一个异常!";
cout<<"正常执行 1"<<endl;
}
catch(const char* s)
{
cout<<s<<endl;
cout<<"异常类型 : int"<<endl;
}
catch(int i)
{
cout<<i<<endl;
cout<<"异常类型: int "<<endl;
}
cout<<"正常执行2"<<endl;
return 0;
}