2012年4月7日

initialization of xxx is skipped by xxx

摘要: 使用case或goto语句时,有时会碰到如下提示:vc2008:initialization of xxx is skipped by xxxgcc:crosses initialization of xxx以case为例:int main( void ){ int a = 2; switch (a) { case 0: int b = 0; break; case 1: cout << a << endl; break; default: break; } return 0;}codeb... 阅读全文

posted @ 2012-04-07 13:06 FlowingCloud 阅读(438) 评论(0) 推荐(0) 编辑

导航