欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: error C267: 'delay': requires ANSI-style prototype [打印本頁]

作者: 化化化    時間: 2019-12-27 23:41
標題: error C267: 'delay': requires ANSI-style prototype
void display1(uint sh,uint fe,uint mi); //定時鬧鐘顯示程序
void write_com(uchar com) //1cd 寫指令程序
{

lcdrs=0;
P0=com;
delay(5);
lcden=1;
delay(5);
lcden=0

報錯:

實訓.C(24): warning C206: 'delay': missing function-prototype
實訓.C(24): error C267: 'delay': requires ANSI-style prototype
有沒有朋友幫看看啊怎么改啊

1.png (37.39 KB, 下載次數: 23)

1.png

作者: mffhxa    時間: 2019-12-29 22:43
這個錯誤是因為你把delay子函數放在了main主函數后面了,調整一下次序就好了。
作者: jizhongbiao    時間: 2019-12-31 16:16
delay()沒有原型聲明。你像display函數那樣聲明一些就可以了。




歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1