青年中文青年中文

case statement的意思

case statement中文翻譯:

[計]選擇語句

相似詞語短語

statement───n.聲明;陳述,敘述;報表,清單

case case───案例案例

case───n.情況;實例;箱;vt.包圍;把…裝于容器中;n.(Case)人名;(英)凱斯;(西)卡塞;(法)卡斯

anecdotal statement───軼事陳述

customer statement───客戶結單,[金融]客戶對數單;客戶月結報告;[金融]客戶對帳單

vision statement───n.愿景宣言; 前景陳述;愿景宣言;遠景聲明

problem statement───[計]問題陳述;[計] 問題陳述

privacy statement───隱私權聲明

disjunction statement───析取語句

雙語使用場景

It looks just like a C-style case statement, right?───看起來很像c風格的case語句,對吧?

Listing 30. Example of a case statement in bash.───清單30 . bash中的case語句示例。

Listing 12. The case statement.───清單12 . case語句。

Assume that Color is a String variable and that this variable is a parameter for a method that contains the Select Case statement.───假定Color為一個String變量且此變量是一個包含SelectCase語句的方法的參數。

So, each time this section of code is executed, the $TIME is checked to see if it matches the times of the case statement.───因此,每次執行這個代碼段的時候,將檢查$TIME是否匹配case語句所指定的時間。

The script starts by parsing parameters and breaking the launch and terminate functions into a case statement.───這個腳本在開頭解析參數,將launch和terminate函數調用放到case語句中。

The case statement that matches the constant in the switch expression is only reachable; all other case statements are not reachable.───只能訪問與switch表達式中的常數匹配的case語句,而無法訪問其他所有case語句。

A case statement allows you to quickly build upon it as your script evolves and needs to perform different tasks.───當您的腳本變得比較復雜、并且需要執行不同的任務時,可以使用case語句迅速地進行構建。

This case matches anything that wasn't matched by the other cases, and should be the last case statement.───它匹配了任何和其它case都不匹配的情況,并且應該是最后一條case語句。

英語使用場景

Consider the code above and realize that any enumerated value not specifically processed by a case statement is instead processed by the default statement.

The case statement is another conditional statement that you can use in place of using an if statement.