翻译感激

来源:百度知道 编辑:UC知道 时间:2024/04/29 09:40:18
Why did I place a break statement at the end of each case label? Each
case label is tested in turn against the expression's value. Each
nonmatching case label is skipped in turn. When a case label matches the
value, execution begins with the statement following the case label. The
"gotcha" is that execution continues through each subsequent case
statement until the end of the switch statement. If num_tries equals 2, for
example, and if there was no break statement, the output would look like
this:

为什么我安置了一个断裂声明在各个案件标签的末端? 每个
案件标签被测试反过来反对expression's 价值。每个
nonmatching 的案件标签跳反过来。当案件标签匹配
价值, 施行从声明开始跟随案件标签。
"gotcha" 是, 施行继续通过各个随后案件
声明直到结尾的开关声明。如果num_tries 合计2, 为
例子, 和如果没有断裂声明, 产品会看起来象
这: