- iOS 12 Programming for Beginners
- Craig Clayton
- 121字
- 2021-07-02 15:04:59
Creating an empty array
Now let's create a few arrays in Playgrounds.
Sometimes, you may want to remove your prior entries from your Playground so that it is easier for you to see each new print statement. Do that now and input the following:

We just created our first two arrays. The reason for two different syntaxes is because you can create it in two different ways. Regarding the first example, you will see me create arrays throughout this book.
The data types within each set of brackets tells Swift what type of array we want to create. The first array (integers) we created has a data type of ints, and our second array (strings) has a data type of strings.
推薦閱讀
- 物聯(lián)網(wǎng)與北斗應(yīng)用
- Cisco OSPF命令與配置手冊
- 6G潛在關(guān)鍵技術(shù)(下冊)
- 物聯(lián)網(wǎng)之魂:物聯(lián)網(wǎng)協(xié)議與物聯(lián)網(wǎng)操作系統(tǒng)
- Learning Karaf Cellar
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- Drush User’s Guide
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- 網(wǎng)管工具使用與技巧大全
- 物聯(lián)網(wǎng)場景設(shè)計(jì)與開發(fā)(初級(jí))
- 無線傳感器網(wǎng)絡(luò)定位技術(shù)
- 5G非正交多址接入技術(shù):理論、算法與實(shí)現(xiàn)
- 物聯(lián)網(wǎng)基礎(chǔ)及應(yīng)用
- 華為HCIA-Datacom認(rèn)證指南
- Guide to NoSQL with Azure Cosmos DB