原文: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