标题:
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)
下载附件
2019-12-27 23:39 上传
作者:
mffhxa
时间:
2019-12-29 22:43
这个错误是因为你把delay子函数放在了main主函数后面了,调整一下次序就好了。
作者:
jizhongbiao
时间:
2019-12-31 16:16
delay()没有原型声明。你像display函数那样声明一些就可以了。
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1