No, continue
can be only used inside while
, for
, or do
.
continue instead of return inside a function in C++`
题
Does it make sense to use continue
instead of return
, while completing a function in C++?
void function()
{
//do something;
continue; //instead of return
}
解决方案
不隶属于 StackOverflow