[解決方案]. 方法一在case 區段內使用{ } 把程式碼包起來 switch (xxxx) { case 0: { NewClass *obj= nil; } break;. 方法二將變數定義在switch 外部
確定! 回上一頁