- Mastering Swift
- Jon Hoffman
- 196字
- 2021-07-16 14:12:11
Chapter 2. Learning about Variables, Constants, Strings, and Operators
The first program I ever wrote was written in the basic programming language, and was the typical Hello World application. This application was pretty exciting at first, but the excitement of printing static text wore off pretty quickly. For my second application, I used basic's input command to prompt the user for a name and then printed out a custom hello message to the user with their name in it. At the age of 12, it was pretty cool to display Hello Han Solo. This application led me to create numerous Mad Lib style applications that prompted the user for various words and then put those words into a story that was displayed after the user entered all the required words. These applications introduced me to, and taught me, the importance of variables. Every useful application I created since then has used variables.
In this chapter, we will cover the following topics:
- What are variables and constants?
- Difference between explicit and inferred typing
- Explaining numeric, string, and Boolean types
- Defining what optional types are
- Explaining how enumerations work in Swift
- Explaining how Swift's operators work
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- ReSharper Essentials
- Redis入門指南(第3版)
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- OpenCV實例精解
- R語言數據可視化之美:專業圖表繪制指南
- Practical DevOps
- Java EE 7 Performance Tuning and Optimization
- Python忍者秘籍
- The Professional ScrumMaster’s Handbook
- Python機器學習算法與應用
- Visual Basic程序設計(第三版)
- Arduino Wearable Projects
- 跟戴銘學iOS編程:理順核心知識點
- Solr權威指南(下卷)