Array & String

介紹陣列、動態陣列、字串…

Array

introduce:

The array is base of data structrue store a collention of sequentially elements and is fixed capacify and need to specify size. But can be access randoms since each element in an array can be identified by an array index.

陣列是基本的儲存有順序的元件集合的資料結構且容量是需要固定的。但可以隨機取,因為在陣列裡的每一個元素都可以透過陣列的index來標記

Dynamic Array

introduce:

Beacuse array is need to fixed capacity and specify size when we initialize ,sometime there is inconvenient and wasteful. therefore programing is use list

因為陣列在初始時需要固定的大小,有時不是很方便及浪費,因此程式有使用list

Last updated

Was this helpful?