C++关键技术总结
else
throw Derived(); //抛出派生类对象 }
catch(Derived d)
{
cout << "Exception:";
d.show();
}
catch(Base b)
{
cout << "Exception:";
b.show();
}
}
return 0;
}
C++关键技术总结
else
throw Derived(); //抛出派生类对象 }
catch(Derived d)
{
cout << "Exception:";
d.show();
}
catch(Base b)
{
cout << "Exception:";
b.show();
}
}
return 0;
}
下一篇:什么是联合国气候变化框架公约?