As a general rule, anywhere constants are in use, such as in places you are currently using the switch code to switch constants.
一条普遍规则是,任何使用常量的地方,例如目前用switch代码切换常量的地方。
A pre-set code is given to the farmer to switch on or off the pumpset.
一个预设代码给农夫打开或关闭泵唧装置。
The last line shown demonstrates how this is used as a switch throughout the code.
上述代码最后一行展示如何将这个常量用作整个代码中的一个开关。
应用推荐