• Contents of the Switch statement.

    switch语句内容

    youdao

  • A switch statement should have the following form.

    switch语句以下格式

    youdao

  • Use cURL, as shown in Listing 9, to verify that the switch statement is working correctly.

    如清单9使用cURL验证s witch语句运行正常

    youdao

  • We resorted to using a simple switch statement in order to define the class value with more control.

    我们使用一个简单switch语句强的控制能力定义class

    youdao

  • If the vendor name is recognized, the switch statement follows the expected pattern for that vendor.

    如果商家名称认可,switch语句就会遵照该商家的期望模式

    youdao

  • The bulk of the work is done by the 250 line switch statement that makes up the EmitFragment function.

    这些工作EmitFragment函数完成,其中包含了大约250行的switch语句

    youdao

  • This is part of a large switch statement that enumerates each method; this will become important later.

    一个列举每种方法庞大switch语句中的一部分这些内容会就变得很重要

    youdao

  • In Listing 6, the switch statement determines the value to use based on the first part of the URL path.

    清单6中,switch语句根据URL路径一部分决定使用

    youdao

  • The OMG CORBA specification describes the IDL union as a cross between a C union and a switch statement.

    OMGCORBA规范IDL联合描述C 联合类型switch语句的混合物。

    youdao

  • The code fragment in Figure 1 shows the exact path the application took when executing the switch statement on line 111.

    1中的代码显示了第111执行交换陈述应用准确路径

    youdao

  • We experimented with different uses for pattern matching, a powerful improvement on the familiar case-switch statement.

    我们实验不同模式匹配,作为我们熟悉的case-switch 指令的一种强大增强。

    youdao

  • Within the switch statement of the tcp_usrreq function, the case for PRU_LISTEN checks if the socket is bound to the port.

    tcp_usrreq函数切换语句中,PRU_LISTEN的实例检查接字是否绑定端口

    youdao

  • 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.

    得到整数存储到nswitch语句圆括号里可以是个整数,或者一个字符其他的基本类型。

    youdao

  • This method used a PHP switch statement that sets the value for the class attribute based on the first argument in the URL.

    这种方法使用一个php分支语句根据URL中的第一个参数设置class属性

    youdao

  • For example, a programmer might include the assertion that you should never reach the default condition in a switch statement.

    例如程序员可能会程序中包含断言使永远也不会到达switch语句中的default条件

    youdao

  • Then it uses the all-too-familiar switch statement to determine the error level and craft an error message appropriate to that level.

    然后使用熟悉不过的开关语句决定错误等级相应打造等级相适应的错误消息

    youdao

  • Not all enum constants covered on switch Missing enumerations on a switch statement, meaning that you may miss some enumerated options.

    Notall enum constantscoveredonswitch switch语句缺少枚举意味着可能遗漏一些枚举选项。

    youdao

  • Both blocks of code evaluate an int value using a switch statement that results in a human-readable string value printed to the console.

    这两个代码块都会使用switch语句计算int,从而得到输出控制台的供人阅读的字符串值。

    youdao

  • A little trick of using a dictionary as a switch statement is used here (although the otherwise case remains too narrow in the example).

    在这里我们使用技巧就是一个字典作为一个switch语句(尽管示例中的otherwise情况还是狭窄了)。

    youdao

  • Then, it USES a state machine (a switch statement, that is) to determine whether an incoming character represents the end of a partition.

    然后使用一个状态(即s witch语句)决定引入字符是否代表分区的末端

    youdao

  • 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.

    这样主要原因基础实现指令C语言声明中可以包装一个大的switch表达式,如果使用手工的方式来完成无疑将会是非常痛苦的。

    youdao

  • Extending the reach of the switch statement, not only to strings but also to other types, has been the subject of repeated enhancement requests over the years.

    不仅是把switch语句范围扩展字符串上而且要扩展到其他类型已经多年来一直反复在提交的一个增强性请求了。

    youdao

  • First, you parse the ID from the XML structure returned from PHP, then you use a switch statement to direct the error to the appropriate message or associated code.

    首先XML结构(从php返回的)中解析id然后使用一个转换语句直接指向消息或者相关代码

    youdao

  • The resulting code is a beautiful example of a tiny domain-specific language within Rails that extends Ruby to make a kind of switch statement. Here's how it works.

    生成代码Rails中小型的特定于域语句的优美示例扩展Ruby构造switch语句

    youdao

  • Ceylon also ensures (at compile time) that the switch statement contains an exhaustive list of instance tests or, at a minimum, an else clause to provide complete coverage.

    Ceylon确认(编译)switch语句包含详尽实例测试列表至少包含else子句,从而提供完整的覆盖范围。

    youdao

  • Likewise, you might want to add assertions to else conditions in if blocks, where conditions are assumed, or to default cases of a switch statement, which should never be reached.

    同样可能希望if中的else条件添加断言这里已经设置了该条件,或者switch语句中的缺省情况中添加断言,使缺省情况永远不可能到达

    youdao

  • The main method USES an enhanced for loop to iterate through the different primitives and a simple switch statement on the current instance to set the size value of each primitive.

    main方法使用增强for循环迭代通过不同语,当前实例上使用一个简单switch语句设置每个原语大小

    youdao

  • Jumping into a statement expression with goto or using a switch statement outside the statement expression with a case or default label inside the statement expression is not permitted.

    允许使用switch语句或是goto跳入到声明表达式中。

    youdao

  • Tiger has conveniently added enum support to the good old switch statement, so it's easy-to-use and fits right in with what you already know. Listing 6 shows you how to pull this off

    Tiger能够很方便地枚举支持添加到过去的好东西switch语句上所以容易使用而且适合已知的内容。

    youdao

  • Another useful rule of thumb: it's typically not cost effective to inline functions with loops or switch statements (unless, in the common case, the loop or switch statement is never executed).

    其他有用经验法则:一个函数如果判断循环语句通常效率的。(除非通常情况循环语句或判断语句不会执行)。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定