如果改成这样
void init()
{
EA=1;
ET0=1;
TMOD=0X02;
TH0=156;
TL0=156;
TR0=1;
EX0=1;
IT0=1;
}
错误就变成了这样了
HOMEWORK.C(20): 错误 C244: 'EX0': can't initialize, bad type or class
HOMEWORK.C(20): 错误 C132: 'EX0': not in formal parameter list
HOMEWORK.C(21): 错误 C244: 'IT0': can't initialize, bad type or class
HOMEWORK.C(21): 错误 C132: 'IT0': not in formal parameter list
到底是那里错了啊