首页 > 其他 > 详细

关于case语句中声明变量并初始化的注意事项

时间:2016-10-13 09:33:04      阅读:218      评论:0      收藏:0      [点我收藏+]

今天看到一句对这个问题特别精辟的总结,记录如下:

It is possible to transfer into a block, but not in a way that bypasses declarations with initialization. A program that jumps from a point where a local variable with automatic storage duration is not in scope to a point where it is in scope is ill-formed unless the variable has POD type (3.9) and is declared without an initializer (8.5).

关于case语句中声明变量并初始化的注意事项

原文:http://www.cnblogs.com/ptolemaeus/p/5955071.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!