Notice how the program statements in listing 3 that extend over more than one line are indented to improve readability 注意清單3中擴(kuò)展到多個(gè)行的程序語句是如何縮進(jìn)以改善可讀性的。
Sometimes , however , it s desirable to place multiple program statements on a single line - when you re initializing variables , for example 然而,有時(shí)候需要在一行放多個(gè)程序語句,例如初始化變量時(shí)。
Statement can be used to execute one of two blocks of program statements , depending on the value of a particular boolean expression 語句可以如何用于根據(jù)一個(gè)特定布爾表達(dá)式的值,來執(zhí)行兩個(gè)程序語句塊中的其中一個(gè)。
This means the program statements executed in the loop body must change the value of the expression - or else the loop will never end 這意味著循環(huán)體中執(zhí)行的程序語句必須要改變表達(dá)式的值,否則循環(huán)將無法結(jié)束。如清單8所示。
A multi - branch conditional statement that allows for selective execution of bounded groups of program statements depending upon the value of a control expression 能根據(jù)控制表達(dá)式的值對有限個(gè)程序語句進(jìn)行選擇性執(zhí)行的一種多分支條件語句。