1

I have 2 functions in my code, namely void compare(...) and void checklist(...).

In void compare(...), I have if statement that has been defined as Reselection.

Now, I need to use the goto function from void checklist(...) to go to Reselection in void compare(...).

Since I know that the goto function can only be used within that function, I was wondering if there are other function that works as goto function but can be used in different void functions?

4

1 回答 1

4

不,标签对于定义它们的函数是本地的。否则程序将是一团糟。

你应该做Reselection一个自己的功能。

于 2013-10-03T15:50:01.223 回答