【超實用VBS系列課】如何存放超多數(shù)據(jù)?一個數(shù)組搞定!——數(shù)據(jù)分析入門

數(shù)組:dim 數(shù)組名(數(shù)值)
訪問:數(shù)組名(下標)
實例:成績輸入+求平均分
dim cj(40)
dim i
i=0
while(i<5)
cj(i)=inputbox("")
i=i+1
wend
dim sum
sum=0
i=0
while(i<5)
sum=sum+cj(i)
i=i+1
wend
msgbox sum/i
標簽: