【发布时间】:2016-10-19 02:05:36
【问题描述】:
我正在尝试制作如下所示的功能。我想让它迭代,但我不确定,因为我需要保持所有路径打开。
someFunction( parameters)
{
//do stuff
switch( thing )
case: one
if (something true)
{
try { someFunction( different parameters ) } catch(...) { throw }
case: two
//if else with the else being a throw exception.
case: three
// same
case: four
...
default
return some value
【问题讨论】:
标签: c++ exception recursion iteration try-catch