client.c:996: error: a label can only be part of a statement and a declaration is not a statement

switch(a){
case 1:
....................
....................
....................
break;
case 2:
break;
}
 
在GCC下编译会出现如下错误:
error: a label can only be part of a statement and a declaration is not a statement
但加上如下括号后,就没有错误了,这是为什么?编译器的问题?
switch(a){
case 1:

....................
....................
....................

break;
case 2:
break;
}
http://zhidao.baidu.com/link?url=fSrpX7VaVXd5-L8c2zj2xVDSbh8bM-5xyO6iyZOYgV30mI_iZlASQmNakmGSC-4gnPO3oG2HzIAvdSVayOTjTa
http://www.cnblogs.com/radiolover/p/4307453.html 手机定位
http://www.cnblogs.com/skyme/p/4310550.html 数据挖掘

相关文章:

  • 2021-05-20
  • 2021-07-02
  • 2021-08-13
  • 2022-12-23
  • 2022-01-05
  • 2021-05-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-08-28
  • 2021-08-25
相关资源
相似解决方案