64,637
社区成员
发帖
与我相关
我的任务
分享
void main()
{
try{
try{
cout<<"the first!"<<endl;
throw(1);
}catch(...){
cout<<"catch the first!"<<endl;
}
cout<<"the second!"<<endl;
throw(2);
}catch(...){
cout<<"catch the second!"<<endl;
}
};
这样俩异常都可以捕获到了。