Home
Business
首頁
程式設計
好用工具
生活雜記
2020年1月11日
Home
» » 陣列 Array
陣列 Array
1月 11
程式語言
,
APCS
定義
Array,陣列,數組。 陣列是用來儲存一群『相同資料型態』的元素 (element),並且具有順序性的資料列。通常佔用連續的記憶體空間。
宣告
如果要引用陣列的某個位置或元素,必須指定陣列名稱,及陣列中的位置編號。
例如,建立一個長度為 5、元素型別為 int 的陣列 arr:
int arr[5];
時間複雜度
時間複雜度為O(1)
← 較新的文章
首頁
即時新聞
系列文章
Popular
Tags
Blog Archives
Advertisement
Responsive Advertisement
About Me
eachTechABC
檢視我的完整簡介
Social Plugin
Main Tags
Main Tags
命令提示字元
(1)
程式語言
(2)
螢幕錄影
(1)
APCS
(1)
pip
(2)
pipenv
(1)
Python
(3)
windows
(2)
Advertisement
Breaking News
Sponsor
標籤
命令提示字元
(1)
程式語言
(2)
螢幕錄影
(1)
APCS
(1)
pip
(2)
pipenv
(1)
Python
(3)
windows
(2)