简体   繁体   中英

Jumping from one method to another using goto statement

我可以使用goto语句从c ++,java或c#中的一种方法跳转到另一种方法。

Not with java. goto is a reserved word (statement) but it is not useable by design.

Further reading:

Not in C#. It is possible to jump inside one method though.

在VB6中,goto语句用于在同一方法内跳转某些位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM