日期:2014-05-17  浏览次数:20933 次

asp 数组求和
a=request.form( "aa ")
b=request.form( "b ")
ap=split(a, ", ")
bp=split(b, ", ")
c(i)=ap(i)+bp(i)
一行数组的和怎么计算

------解决方案--------------------
a=request.form( "aa ")
b=request.form( "b ")
ap=split(a, ", ")
bp=split(b, ", ")
dim c()
redim c(Ubound(ap))
for i=0 to Ubound(c)
c(i) = ap(i) + bp(i)
next