[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],


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM