在预期的程序中获得错误;在令牌之前

时间:2017-10-02 04:53:48

标签: c expression token geany

error: expected expression before ';' token 
graph[ ptr->count ].count- ;
                           ^

我在Geany中编译代码时出现错误。有人可以帮忙做点什么吗?

1 个答案:

答案 0 :(得分:-1)

假设你试图递减......按1计算......你还需要一个减号,就像这样

int i = 10;
i--;

是C / C ++中的有效表达式。