当前位置: 代码迷 >> ASP >> asp 数组求和,该如何解决
  详细解决方案

asp 数组求和,该如何解决

热度:92   发布时间:2012-03-13 11:21:10.0
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
  相关解决方案