|
發布時間: 2019-6-15 22:43
正文摘要:#include<reg51.h> #define uchar unsigned char uchar times; sbit g1=P1^0; sbit g2=P1^1; sbit g3=P1^2; sbit g4=P1^3; sbit s1=P3^2; sbit s2=P3^3; bit flag; void delay(uchar a) { tim ... |
charles11 發表于 2019-6-16 08:09 知道了,謝謝,我剛才重新弄了一次可以運行了 |
| 編譯了沒錯誤。發上來的代碼,可能不是樓主編譯的 |
| 根據提示,是說的第一行和第二行的#號 |
|
1. 編譯器設置問題 2. 編譯器安裝目錄 是中文的或者有特殊字符空格等 |
no error.JPG (49.15 KB, 下載次數: 34)
|
Build target 'Target 1' linking... Program Size: data=10.1 xdata=0 code=160 "BXtempCTRL" - 0 Error(s), 0 Warning(s). |
| 剛剛幫你編譯了一下,并沒有錯誤哦。 |