[讨论]请高手来看看,没人会?
Statment main(){
int note=0;
int fre,dur,control;
clock_t goal;
printf("please leason song of kewang:\n");
{
outportb(0x43,0xb6);
fre=(unsigned)(1193180L/fre);
outportb(0x42,(char)fre);
outportb(0x42,(char)(fre>>8));
control=inportb(0x61);
outportb(0x61,(control)|0x3);
}
goal=(clock_t)dur+clock();
while(goal>clock());
if(fre)
outportb(0x61,control);
goal=(clock_t)0;
note=note+2
}
这错在哪里??是不是声明的问题??帮下我



[此贴子已经被作者于2005-11-19 19:33:36编辑过]