1、A default case must be provided for every switch statement.2. A case that consists of multiple lines must be enclosed in braces.3. Only the statements for one case can be executed in one switch statement.4. A case with no statements is called an empty case, and onlyrequires the break statement.5. A constant integral expression is any expression involving character and integer constants that evaluates to an integer value.6、In a while loop, the increment statement should always be placed after a continue statement.7. The break statement will cause the first statement after the structure to be executed.8. The effects of break and continue statements can be achieved by struc¬tured programming techniques.9. The statements break and continue are slow and inefficient.10. The break statement terminates a program. 

解决方案 »

  1.   

    本小姐的答案,不做参考
    1.每一个switch语句必须有默认的分支 错
    2.如果某个case中有多条语句,必须使用括号 错
    3.在switch语句中只能执行一个分支 错
    4.没有执行语句的分支是空分支,只需要一个break语句即可 对
    5.一个常量整型表达式是包含被赋予常量整数的字符和整型的任意一个表达式 对
    6.在while循环语句中,每进行下一次循环之前,都必须给循环变量赋值 对
    7.break语句将会导致程序结束switch语句,继续执行switch后面的第一条语句 对
    8.不知道什么意思,(*^__^*) 嘻嘻……
    9.break和continue语句速度慢而且效率低 对
    10.break语句结束一段程序 错(return语句)
      

  2.   

    LZ很好学啊,你们老师是Yly吧
      

  3.   

    发现了,翻译错了
    6.在while循环语句中,增值表达式总是放在进行下一次循环语句之后  错
    谢谢提醒!