ArraySetAsSeries的作用是什么呢?

 

ArraySetAsSeries(ExtMapBuffer, true); 这句会对数组ExtMapBuffer设置为series,这样能起到什么作用呢 ?

ArraySetAsSeries( double& array[], bool set)
设置指数数组为系列数组,数组0位的值是最后的值。返回之前的数组状态

:: 输入参数
array[] - 需要处理的数组
set - 是否是设置为系列数组,true或者false

 
hzs:

thank you
你明白是什么意思了?
 
hzs:

ArraySetAsSeries(ExtMapBuffer, true); 这句会对数组ExtMapBuffer设置为series,这样能起到什么作用呢 ?

ArraySetAsSeries( double& array[], bool set)
设置指数数组为系列数组,数组0位的值是最后的值。返回之前的数组状态

:: 输入参数
array[] - 需要处理的数组
set - 是否是设置为系列数组,true或者false

设置数组的排序方向,0是从最新到最老,1是从老到最新
原因: