【发布时间】:2012-08-26 18:58:51
【问题描述】:
可能重复:
What is the difference between throw and throw with arg of caught exception?
Does catch (…) work on throw; with no object?
这会崩溃:
try
{
if(1)
throw;
}
catch(...)
{
printf("hi");
}
我以为我能做到,但我想不行。在不需要任何信息的情况下,正确的投掷方式是什么?
【问题讨论】:
标签: c++ windows visual-c++ exception try-catch