switch statement
常見(jiàn)例句
- The code fragment in Figure 1 shows the exact path the application took when executing the switch statement on line 111.
圖 1中的代碼段顯示了第 111 行執(zhí)行交換陳述時(shí)所應(yīng)用的準(zhǔn)確路徑。 - Then it uses the all-too-familiar switch statement to determine the error level and craft an error message appropriate to that level.
然后,它使用再熟悉不過(guò)的開(kāi)關(guān)語(yǔ)句來(lái)決定錯(cuò)誤等級(jí)并相應(yīng)打造與該等級(jí)相適應(yīng)的錯(cuò)誤消息。 - One of the primary reasons for this is primitives and instructions are wrapped in a huge switch statement in C, which is a pain to maintain by hand.
這樣做的 主要原因是基礎(chǔ)實(shí)現(xiàn)和指令在C語(yǔ)言的聲明中可以包裝為一個(gè)大的switch表達(dá)式,如果使用手工的方式來(lái)完成無(wú)疑將會(huì)是非常痛苦的。 - I get the int and store it in n. The switch statement takes inside its parenthesis an int or a char or some primitive type.
我得到一個(gè)整數(shù)并把它存儲(chǔ),到n中,switch語(yǔ)句的圓括號(hào)里可以是一個(gè)整數(shù),或者一個(gè)字符或其他的基本類型。
哈佛公開(kāi)課 - 計(jì)算機(jī)科學(xué)課程節(jié)選 - Rapid7, one of the two firms that confirmed the breach, has suggested in a statement to press that users should indeed change their passwords, but that a single switch may not keep them safe.
FORBES: If LinkedIn Hasn't Fixed Its Massive Security Breach, A New Password May Not Be Enough 返回 switch statement