标题:求高手帮小弟解释下以下代码!真心看不懂哇!!!
只看楼主
qadzz
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-5-12
 问题点数:0 回复次数:1 
求高手帮小弟解释下以下代码!真心看不懂哇!!!
if isId(id) then
        dim arr
        arr=array(0,0,0,0,0,0,0)
        for i=0 to ubound(inArray,2)
            response.write "<tr>"
            response.write "<td noWrap>"&inArray(0,i)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(1,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(2,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(3,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(4,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(5,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(inArray(7,i),2)&"&nbsp;</td>"
            response.write "<td noWrap>&nbsp;"&inArray(6,i)&"&nbsp;</td>"
            response.write "</tr>"
            arr(0)=arr(0)+Cdbl(inArray(1,i))
            arr(1)=arr(1)+Cdbl(inArray(2,i))
            arr(2)=arr(2)+Cdbl(inArray(3,i))
            arr(3)=arr(3)+Cdbl(inArray(4,i))
            arr(4)=arr(4)+Cdbl(inArray(5,i))  
            arr(5)=arr(5)+Cdbl(inArray(7,i))
        next
            response.write "<tr>"
            response.write "<td noWrap>合计&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(0),2)&"&nbsp;</td>"     '这个地方最需要注释了,实在搞不懂这合计怎么算的- -!
            response.write "<td noWrap>&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(2),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(3),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(4),2)&"&nbsp;</td>"
            response.write "<td noWrap>"&formatNum(arr(5),2)&"&nbsp;</td>"
            response.write "&nbsp;<td noWrap>&nbsp;</td>"
            response.write "</tr>"
    end if
搜索更多相关主题的帖子: arr 真心 
2013-05-12 12:51
邓士林
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:淮河河畔
等 级:贵宾
威 望:61
帖 子:2391
专家分:13384
注 册:2013-3-3
得分:0 
你看下http://baike.baidu.com/view/2260919.htm

Maybe
2013-05-12 13:40



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-406878-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.056854 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved