追蹤
ˊ-橙色九月-ˊ
關於部落格
  • 32614

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

VB5

For i as Integer = 1to 10
=>Do something
NEXT

班上有40位同學,每個同學都休了五個科目。
for i as integer = 1 to 40
for j as integer = 1 to 5
for k as integer = 1 to 5
.............
next
next
next

陣列Array(Dimension)
具有相同型態的資料集合
只要有陣列必有FOR

班上有5個同學起始的成績為60、70、80、90、92 (整數)
Dim score(4) as integer
=>
1.
score(0)=60
score(1)=70
score(2)=80
score(3)=90
score(4)=92
2.
Dim score(4) as integer
={60、70、80、90、92}

每人加5分>重複性
Dim score(4) as integer={60、70、80、90、92}
Dim score(4) as Integer
for score(4) = 0 to 4
score(4)=score(4)+5

相簿設定
標籤設定
相簿狀態