设置大小和SetAtGrow差异 [英] Set Size and SetAtGrow difference

查看:105
本文介绍了设置大小和SetAtGrow差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CArray中设置大小和SetAtGrow差异



请解释

Set Size and SetAtGrow difference in CArray

Please explain

推荐答案

全部隐藏在文件:





SetSize [ ^ ]

建立空数组或现有数组的大小;必要时分配内存。

It is all hidden in the documentation:


SetSize[^]

Establishes the size of an empty or existing array; allocates memory if necessary.

在指定的索引处设置数组元素。

备注

如果数组自动增长必要的(即调整上限以适应新元素)。

Sets the array element at the specified index.
Remarks
The array grows automatically if necessary (that is, the upper bound is adjusted to accommodate the new element).


这篇关于设置大小和SetAtGrow差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆