Keil uvision4出現的error和warning

Errorexpress

  1. 頭文件預約義語句最後多了分號  出現error: #18 expected a")"  出現error: #29: expected an expression

Warning函數

  1. 主函數返回值必須是int型  不然warning:  #951-D: return type of function "main" must be "int" 
  2. 代碼的最後一行要有一個回車
相關文章
相關標籤/搜索