PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 疑難雜症區
帳戶
密碼
 

回應
 
主題工具
叛逃..
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
回應時引用此文章
叛逃..離線中  


回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是05:16 AM.


vBulletin Version 3.0.1
powered_by_vbulletin 2025。