#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
void write-com(uchar com);
void write-date(uchar date);
void main()
{
init();
while(1);
}
void write-com(uchar com)
{
P0=com;
}
void write-date(uchar date)
{
P0=date;
}
为何显示错误 YEJING.C(9): error C136: 'write': 'void' on variable
改为以下就不显示错误了
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
void writecom(uchar com);
void writedate(uchar date);
void main()
{
init();
while(1);
}
void writecom(uchar com)
{
P0=com;
}
void writedate(uchar date)
{
P0=date;
}
小弟是初学者,花了很长时间才调试好,但是很是不理解!求大神不吝赐教,小弟先谢过 |