一行语句outportb(301H,FFH),编译报错,错误提示为缺少右括号,这是什么情况?
H是十六进制的意思
if((status&0x02)!=0)
{
sletter=inportb(data51);
if(sletter==1)
{outportb(301H,FFH);
if (already==0)
{gotoxy(7,5);
cprintf("@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @");
gotoxy(7,7);
cprintf(" It is day now ! ");
gotoxy(7,9);
cprintf("@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ");
already=1;}
}
else
{ outportb(301H,FEH);
if (already==1)
{gotoxy(7,5);
cprintf("* * * * * * * * * * * * * * * * *");
gotoxy(7,7);
cprintf(" It is night now ! ");
gotoxy(7,9);
cprintf("* * * * * * * * * * * * * * * * * ");
already=0;}
}
}
}while(!kbhit());
}
jeck猫
大话西游666
相关分类