分析

如果读取的是合并单元格

1.   栈中没有元素,则该单元格为首个单元格,将id命名为01,superid为0,并且存入栈中。

     

2.    如果栈中有元素,则获取栈顶元素top

top.col<current.col  

则将current存入栈中,(id为top.id+”01”,superid为top.superid)

top.col=current

则将top移除,获取新的top,current存入栈中。(id为top.id+”01”,superid为top.superid)

Top.col> current.col

While循环,删除top直到获取的top.col=current.col。(id为top.id+1,superid=top.superid)

    

   

读取的不是合并单元格

        获取获取栈顶元素top,当前元素的id=top(id)+“”,super(id)=top(id);

 

 

 

posted @ 2017-10-12 21:31  cheerupWoo  阅读(63)  评论(0编辑  收藏  举报