瀏覽單個文章
叛逃..
Basic Member
 

加入日期: Aug 2005
文章: 21
有關VB程式~~幫幫忙~~很急>"<

*用一個command作出下列的程式碼(我做的跑不出來~而且還有錯~大大們幫個忙!!)
非常急!!!!!!!

Sub compare ( byref X as Integer , byref Y as Integer )
X = X-2
Y = Y+2
End sub

Dim a as Integer
Dim b as Integer
Dim count as Integer
Count = 0
a=100
B=-100
Do
Count = count + 1
Call compare (a,B)
‘Cls a , B , count
Loop while a <> B
Count = 0
X=100
Y=-100
Do
Count = count + 1
compare (a,B)
Print a , B , count
Loop while (a <> B)
Sub compare ( byref X as Integer , byref Y as Integer )
X = X-2 : Y = Y+2
End sub
     
      
舊 2006-03-07, 10:59 PM #1
回應時引用此文章
叛逃..離線中