c语言程序问题 求高手指点。到底哪里错了?
程序如下:WriteCommandLcd(0x01);//显示清屏while(1){if(flag==1)//1S标志到{flag=0;//清1S标志x=T0count*...
程序如下:
WriteCommandLcd(0x01); //显示清屏
while(1)
{
if(flag==1) //1S标志到
{
flag=0; //清1S标志
x=T0count*65536+TH0*256+TL0;// 计算频率值
Pa=20x/2000+9;
for(i=0;i<8;i++) //循环八次
{
temp[i]=0; //将八个显示换冲区清零
}
i=0;
while(x/10) //计算每一位数值缓冲区
{
temp[i]=x%10;
x=x/10;
i++;
}
错误是:..\..\TEXT.C(154): error C141: syntax error near 'x'
还有
#include <AT89X52.H>
#define uchar unsigned char
#define uint unsigned int
uint Pa;
unsigned char T0count;
unsigned char timecount;
bit flag;
错误是:..\..\TEXT.C(1): warning C500: MISSING LICENSE ID CODE (LIC) IN 'TOOLS.INI' 展开
WriteCommandLcd(0x01); //显示清屏
while(1)
{
if(flag==1) //1S标志到
{
flag=0; //清1S标志
x=T0count*65536+TH0*256+TL0;// 计算频率值
Pa=20x/2000+9;
for(i=0;i<8;i++) //循环八次
{
temp[i]=0; //将八个显示换冲区清零
}
i=0;
while(x/10) //计算每一位数值缓冲区
{
temp[i]=x%10;
x=x/10;
i++;
}
错误是:..\..\TEXT.C(154): error C141: syntax error near 'x'
还有
#include <AT89X52.H>
#define uchar unsigned char
#define uint unsigned int
uint Pa;
unsigned char T0count;
unsigned char timecount;
bit flag;
错误是:..\..\TEXT.C(1): warning C500: MISSING LICENSE ID CODE (LIC) IN 'TOOLS.INI' 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询