expected expression before '{' token

后端 未结 4 1740
清歌不尽
清歌不尽 2021-01-04 17:02

I am getting: \"error: expected expression before \'{\' token\" for the line I\'ve commented before. If the struct is already defined why would it need a \"{\" before token.

4条回答
  •  离开以前
    2021-01-04 17:57

    You can only use an initializer list in the declaration of the variable, not after the fact.

提交回复
热议问题