哭死了,专业英语翻译请帮下忙啊!

来源:百度知道 编辑:UC知道 时间:2024/05/31 14:32:58
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:

我为什么要在每个 case 标号的结尾要放一个 break 语句呢?所有case 标号都是依次来检查表达式的值的。每个不匹配的 case 标号都依次被跳过。当有个 case 标号与其值匹配时,执行就从该 case 标号后面的语句开始。它的“缺陷”就是其执行会继续穿过每个后续的 case 语句直到此 switch 语句的结尾。比如说,如果 num_tries 等于 2,而且若其中没有 break 语句,它的输出看起来就是这样:

为什么我在最后声明中打破了每个案件的帽子? 每次检验标签反过来表达反对的价值. 每个标签nonmatching案又是跳. 当比赛一宗商品标签,执行下列案件始于声明帽子. \"gotcha\"是通过继续执行每一案件说明,直到后来转言. 如果num_tries=2,举例来说,如果没有突破,并声明,像这样:

我翻译,不好 呵呵 还是删掉吧 别误导人
li_yinan - 举人 四级 翻译的特别好

用金山翻译看看