返回顶部

[Warning] pointer to a function used in arithmetic [-Wpointer-arith]

[Warning] pointer to a function used in arithmetic [-Wpointer-arith]

关于这个warning,直译是将指向函数的指针运用于计算
一开始我不明白,后来经仔细检查后发现我定义的一个函数,需要的变量是三个int,但我最后在使用函数时,本来应该是judge(x,y,z)的,结果我写成了judge[x][y][z],

posted @ 2020-08-31 19:26  tianyudizhua  阅读(1506)  评论(0编辑  收藏  举报