![]() |
你的關鍵字uint不是沒有定義,你需要使用typedef來定義它。 常用的做法為typedef unsigned int uint PS:畢業(yè)設計都要交完了,,這個基本語法你都不懂,,,,,, ![]() |
參與人數(shù) 1 | 黑幣 +20 | 收起 理由 |
---|---|---|
![]() | + 20 | 回帖助人的獎勵! |
uint 和uchar沒定義 在第三行插入 #define uint unsigned int #define uchar unsigned char |
很正常!你學別人程序中的寫法,但你不知道那個uint不是一個關鍵字,是別人造出來的,你的程序中沒有造,所以報錯了。 “邯鄲學步”是不行的。 插入第三行這個內容,就好了。 typedef unsigned int uint; |
少了 #define uint unsigned int |