问题描述:
C语言,写程序,编译出现错: a label can only be part of a statement and a declaration is not a statement,错误的位置指向switch case里面的一个变量。
解决:
在case里面加大括号,把定义的变量和使用括起来。
问题描述:
C语言,写程序,编译出现错: a label can only be part of a statement and a declaration is not a statement,错误的位置指向switch case里面的一个变量。
解决:
在case里面加大括号,把定义的变量和使用括起来。