Array_SetIntegerValue

为指定索引的数值型数组,设定整数值。无返回值。

用法

Array_SetIntegerValue(ArrayName,Index,Value)

参数说明: ArrayName —— 布林型数组名称
               Index —— 数值型,表示数组的索引值
               Value —— 数值型(整数),指定索引的设定值

范例

设定数值型数组arr,索引值为2的值为5,并输出arr[2]的值:

Array: arr[10](0);
Array_SetIntegerValue (arr, 2, 5);
print (arr[2]);