//***************Display start**********************
void Display(uint Tem)//(T = (Tem)*0.02-273.15)
{
unsigned int integer,decimal,T_Hundred_
times
T_Hundred_Times = Tem*2;
LcdWriteCom(0x01);
/*----------------ÕýÊý---------------------------------------------*/
if(T_Hundred_Times>27315)
{
T_Hundred_Times = T_Hundred_Times - 27315;
integer= T_Hundred_Times /100;
decimal = T_Hundred_TImes - integer*100;
/****************ÕûÊý²¿·Ö*********************/
if(integer >= 100)
{
LcdWriteData('0'+integer/100);
integer %= 100;
LcdWriteData('0'+integer/10);
integer %= 10;
LcdWriteData('0'+integer);
}
else if(integer >= 10)
{
LcdWriteData('0'+integer/10);
integer %= 10;
LcdWriteData('0'+integer);
}
else
LcdWriteData('0'+integer);
LcdWriteData('.');
/***************СÊý²¿·Ö*************************/
if(decimal >= 10)
{
LcdWriteData('0'+decimal/10);
decimal %= 10;
LcdWriteData('0'+decimal);
}
else
LcdWriteData('0');
}
/*-------------------¸ºÊý---------------------------------------------*/
else
{
T_Hundred_Times = 27315 - T_Hundred_Times;
integer = T_Hundred_Times/100;
decimal = T_Hundred_Times - integer*100;
LcdWriteData('-');
/*******************ÕûÊý²¿·Ö**********************/
if(integer >= 10)
{
LcdWriteData('0'+integer/10);
integer %= 10;
LcdWriteData('0'+integter);
}
else
LcdWriteData('0'+integer);
LcdWriteData('.');
/****************СÊý²¿·Ö*************************/
if(decimal >= 10)
{
LcdWriteData('0'+decimal/10);
decimal %= 10;
LcdWriteData('0'+deciaml);
}
else
LcdWriteData('0');
}
}
各位大佬帮忙看看,编译时说我T_Hundred_Times、integer、decimal没定义,我明明定义了
MAIN.C(96): error C202: 'deciaml': undefined identifier
MAIN.C(86): error C202: 'integter': undefined identifier
MAIN.C(45): error C202: 'T_Hundred_TImes': undefined identifier