原文:a label can only be part of statement and a declaratioin is not a statement

参考资料: https: stackoverflow.com questions why do i get a label can only be part of a statement and a declaration is not a 问题背景: 写了一段code,如下: 如上所示code编译时候会报错,错误提示 a label can only be part of statement a ...

2019-06-05 14:34 0 645 推荐指数:

查看详情

ERROR : label at end of compound statement

在高版本gcc中,对如如下情况视为错误switch(x){ case 1: .... default:}default后面必须加break或者空语句。switch(x){ case ...

Tue Aug 04 22:23:00 CST 2020 0 993
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM