首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

请教下这个程序编译时为什么出现DELAY:requires ANSI-style prototype

2012-03-30 
请问下这个程序编译时为什么出现DELAY:requires ANSI-style prototype?#includereg52.h/*int*/void DELA

请问下这个程序编译时为什么出现DELAY:requires ANSI-style prototype?
#include<reg52.h>
/*int*/void DELAY();
main()
{
P2=0X00;
DELAY(600);
P2=0XFF;
DELAY(600);
}
/*int*/void DELAY(int i)
{
int j;
for(i;i>0;i--)
for(j=255;j>0;j--)
}

[解决办法]

探讨

问题似乎处在我声明的时候应该在()内写入int i;

热点排行