- 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.
推薦閱讀
- 智能網(wǎng)聯(lián)汽車V2X與智能網(wǎng)聯(lián)設(shè)施I2X
- GPS/GNSS原理與應(yīng)用(第3版)
- 物聯(lián)網(wǎng)之魂:物聯(lián)網(wǎng)協(xié)議與物聯(lián)網(wǎng)操作系統(tǒng)
- Learning Karaf Cellar
- 物聯(lián)網(wǎng)之霧:基于霧計(jì)算的智能硬件快速反應(yīng)與安全控制
- 互聯(lián)網(wǎng)+思維與創(chuàng)新:通往未來的+號(hào)
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 5G+區(qū)塊鏈
- 轉(zhuǎn)化:提升網(wǎng)站流量和轉(zhuǎn)化率的技巧
- 移動(dòng)物聯(lián)網(wǎng):商業(yè)模式+案例分析+應(yīng)用實(shí)戰(zhàn)
- 小型局域網(wǎng)組建
- React Design Patterns and Best Practices(Second Edition)
- Architecting Data:Intensive Applications
- 物聯(lián)網(wǎng)概論
- LiveCode Mobile Development Beginner's Guide