質問

Does it make sense to use continue instead of return, while completing a function in C++?

void function()
{
  //do something;
  continue; //instead of return
}
役に立ちましたか?

解決

No, continue can be only used inside while, for, or do.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top