C++ Primer 随记——第 6 章,语句

  1. case 标号必须是整型常量表达式。(Page 176)
  2. 任意两个 case 标号不能相同。(Page 176)
  3. 对于 switch 结构,只能在它的最后一个 case 标号或 default 标号后定义变量。(Page 176)
  4. 在循环条件中定义的变量在每次循环里都要经过创建和撤销的过程。(Page 178)
  5. goto 语句不能跨越变量定义向前(下)跳转。(Page 185)
  6. goto 语句只能在同一函数内跳转。(Page 185)
Tags:,

This entry was posted in book, Information Technology and tagged , . Bookmark the permalink.

2 Responses to C++ Primer 随记——第 6 章,语句

  1. hzhua says:

    case 标号必须是整型常量表达式。
    很冏很冏

  2. eataix says:

    从来都是把C++ Primer当手册来翻…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">