¤j®a¦n¡A§Ú¦³¤@¬qµ{¦¡½X¡A¦]¬°±ø¦C¥X¨Ó«ÂЪº³¡¤À«Ü¦h
¾ÉPµ{¦¡½X¤£°÷¶°¤¤¡A«ÜÃøÀˬd¡A©Ò¥H·Q¥Îgosub¾ã²z¤@¤U
¥i¬O¦b¨Ï¥Î¤W¡AÁ`¬O¥X²{¡u¥²¶··f°t¨Ï¥Î¡vªº°T®§¡Aµ{¦¡½X¦p¤U- If H Or L Then
- w = 1
- On w GoSub HLchange, hlchange1
- sw = IIf(H, 1, -1)
- End If
- ElseIf sw = 1 Then
- If L Then
- w = 1
- On w GoSub HLchange, hlchange1
- Else
- If b >= Rp(k - 1) Then
- w = 2
- On w GoSub HLchange, hlchange1
- End If
- End If
- ElseIf sw = -1 Then
- If H Then
- w = 1
- On w GoSub HLchange, hlchange1
- Else
- If b <= Rp(k - 1) Then
- w = 2
- On w GoSub HLchange, hlchange1
- End If
- End If
- End If
- j = j + 1
- Loop
- HLchange:
- Rp(k) = b
- Bn(k) = j
- a = b
- k = k + 1
- sw = -sw
- Return
- hlchange1:
- Rp(k - 1) = b
- Bn(k - 1) = j
- a = b
- Return
½Æ»s¥N½X ½Ð°Ý§Ú¬OþÃä¼g¿ù¤F¡H½Ð¤j®a¤£§[«ü±Ð¡AÁÂÁ |