아무 단어나 입력하세요!

"goto" in Chinese (Traditional)

goto(程式語言指令)

Definition

在程式設計中,'goto' 是一種指令,使程式跳到程式碼中的另一個部分,跳過正常的順序。

Usage Notes (Chinese (Traditional))

現代程式設計中 'goto' 被視為過時且有風險,因為會讓程式碼難以理解(「義大利麵條程式」)。主要用於教學或舊式語言。

Examples

The old BASIC language uses goto to move to a different line.

舊版 BASIC 語言使用 **goto** 跳到另一行。

You should avoid using goto in your code.

你應該避免在程式碼中使用 **goto**。

Some early programming books taught beginners to use goto.

有些早期的程式設計書教初學者用 **goto**。

When I see goto in code, I know it’s probably old school.

我在程式碼中看到 **goto** 就知道那是很老的寫法。

Using goto can make debugging a real nightmare.

使用 **goto** 會讓除錯變得非常痛苦。

There are better ways than goto to control a program’s flow these days.

現在比起 **goto**,有更好的方式來控制程式流程。