文档分类
C++关键技术总结
else
throw Derived(); //抛出派生类对象 }
catch(Derived d)
{
cout << "Exception:";
d.show();
}
catch(Base b)
b.show();
return 0;