第四章:數組和字符串

本章學習如何處理一個對象的集合,例如20個int或一個字符串。 一、什麼是數組 數組的一種解釋:「a group of elements forming a complete unit, for example an array of solar panels.」 數組的特徵: 1)數組是元素的集合; 2)數組中包含的所有元素都是同一類型; 3)數組中的元素構成一個完整的集合。 1、爲什麼需要數組
相關文章
相關標籤/搜索