主题:請問C++的break在QB上是什麼?
Wait_HIF1_obf()
{
int waitloop,status;
st=1;
for (waitloop=1;waitloop<=20000;waitloop++)
{
status=inportb(0x64);
if ((status&0x01)==1)
{
st=0; [color=FF0000]break[/color];
}
}
return 1;
}
我轉成QB的語法,不知道break要打什麼
SUB WaitHIF1obf
DIM waitloop AS INTEGER
DIM status AS INTEGER
st = 1
FOR waitloop = 1 TO 20000
status = INP(100)
IF (status AND 1) = 1 THEN
st = 0
END IF
NEXT waitloop
RETURN 1
END SUB
{
int waitloop,status;
st=1;
for (waitloop=1;waitloop<=20000;waitloop++)
{
status=inportb(0x64);
if ((status&0x01)==1)
{
st=0; [color=FF0000]break[/color];
}
}
return 1;
}
我轉成QB的語法,不知道break要打什麼
SUB WaitHIF1obf
DIM waitloop AS INTEGER
DIM status AS INTEGER
st = 1
FOR waitloop = 1 TO 20000
status = INP(100)
IF (status AND 1) = 1 THEN
st = 0
END IF
NEXT waitloop
RETURN 1
END SUB