- case 标号必须是整型常量表达式。(Page 176)
- 任意两个 case 标号不能相同。(Page 176)
- 对于 switch 结构,只能在它的最后一个 case 标号或 default 标号后定义变量。(Page 176)
- 在循环条件中定义的变量在每次循环里都要经过创建和撤销的过程。(Page 178)
- goto 语句不能跨越变量定义向前(下)跳转。(Page 185)
- goto 语句只能在同一函数内跳转。(Page 185)
Tags:
C++,
C++ Primer
Related Posts
Tags: C++, C++ Primer
This entry was posted
on Monday, February 23rd, 2009 at 10:46 pm and is filed under Information Technology, book.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
case 标号必须是整型常量表达式。
很冏很冏
从来都是把C++ Primer当手册来翻…