C(84):warning C209:'hextobcd':too few actual parameters,用keil编程序之后运行出现的错误,#include"reg52.h"#include"intrins.h"#include"math.h"#define uchar unsigned char#define uint unsigned int#define Lcd_Data P0uchar code dispbuf[33]={"Te
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 13:47:05
C(84):warning C209:'hextobcd':too few actual parameters,用keil编程序之后运行出现的错误,#include"reg52.h"#include"intrins.h"#include"math.h"#define uchar unsigned char#define uint unsigned int#define Lcd_Data P0uchar code dispbuf[33]={"Te
C(84):warning C209:'hextobcd':too few actual parameters,用keil编程序之后运行出现的错误,
#include"reg52.h"
#include"intrins.h"
#include"math.h"
#define uchar unsigned char
#define uint unsigned int
#define Lcd_Data P0
uchar code dispbuf[33]={"Temperature:`CDistance:mm"};
uchar numcode[10]={'0','1','2','3','4','5','6','7','8','9'};
uint num[29]={0};
uchar jsh,jsl;
uchar count=0;
uint distance;
sbit RS=P2^0;
sbit RW=P2^1;
sbit E=P2^2;
sbit Busy=P0^7;
uchar bdata flag;
sbit DQ=P2^7;
uint temp;
void delay(void);
void Init_LCD(void);
void Write_Comm(uchar);
void Write_Data(uchar);
void Read_Busy(void);
void Init_18B20(void);
uchar ReadOneChar(void);
void WriteOneChar(uchar dat);
void testtemp(void);
uint wd(void);
void Delay(uint time);
sbit sta_flag=flag^0;
sbit fuhao=flag^1;
sbit START=P1^0;
sbit CNT=P2^5;
sbit CSBIN=P2^6;
sbit BUZZER=P3^7;
void timer1(void);
void delay1ms(void);
void sys_init(void);
void display(void);
void computer(void);
void hextobcd(bit flag,uchar num);
void bm(void);
void delay15(uchar us);
void main(void)
{
uchar i,j;
for(i=0;i
C(84):warning C209:'hextobcd':too few actual parameters,用keil编程序之后运行出现的错误,#include"reg52.h"#include"intrins.h"#include"math.h"#define uchar unsigned char#define uint unsigned int#define Lcd_Data P0uchar code dispbuf[33]={"Te
在你的函数原型中,调用这个函数时有两个参数flag,num,可是在你在写函数体和实际调用时,啥参数都没给,所以编译器傻眼了.赶紧把函数原型中的参数去掉就可以了.