A function-definition is not allowed here before '{'

前端 未结 4 879
悲&欢浪女
悲&欢浪女 2020-12-19 17:11

i am getting a REALLY annoying error. i literally looked everywhere for it! i even went back and changed all of my

if (case)
    // to-do
<
4条回答
  •  爱一瞬间的悲伤
    2020-12-19 17:38

    If you use an auto-indenting code editor (and if you don't, why not?), it would immediately show you where the unbalanced braces are. (Assuming, of course, that it's smart enough to recognize the // ...\ as a multi-line comment :-)

提交回复
热议问题