MDK5報錯

 error:  #77-D: this declaration has no storage class or type specifier   

error:  #147: declaration is incompatible with "H_PCB *Task1PCB" (declared at line 13)

錯誤是結構體變量定義後,在函數外操作賦值,把它放進函數裏面就行了

搞了好久,才發現以前也犯過這種傻逼錯誤

錯誤代碼:

修改後:

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章