KEIL编译时,说“缺少函数原型”,“需要ANSI风格原型”,是怎么回事啊?0
tf7tb2062013.09.09浏览774次分享举报
#include
#include
#define uchar unsigned char
#define uint unsigned int
uchar a[7]={0x20,0x06,0x23,0x06,0x01,0x05,0x12}; //秒分时日月星期年
uchar table[10]={48,49,50,51,52,53,54,55,56,57};
uchar cv[]={49,50,':',12,0,':',0,0,'-',0,0,'-',0,0,'-',0,0,'-',0,0,48,50};
sbit h = P0^0;
sbit hh = P0^1;
sbit lv = P0^2;
sbit b = P0^3;
main()
{
uchar k,sd,e,y , e1 , e2,BG;
uchar ucCurtime[7];
uchar i1;
uchar ucAddr = 0x80;
h=hh=lv=b=1;
W1302(0x8e,0x00); // 控制命令,WP=0,写操作?
for(i1 =0; i1<7; i1++)
{
W1302(ucAddr,a[i1]); //秒分时日月星期年
ucAddr +=2;
}