请问下这个程序编译时为什么出现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--)
}
[解决办法]
发布时间: 2012-03-30 17:32:09 作者: rapoo
请问下这个程序编译时为什么出现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--)
}
[解决办法]