- 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版)
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- HTML5入門經典
- Oracle Exadata專家手冊
- Python數據結構與算法(視頻教學版)
- HTML 5與CSS 3權威指南(第3版·上冊)
- Learning Splunk Web Framework
- SSH框架企業級應用實戰
- 深入大型數據集:并行與分布化Python代碼
- Learning Redis
- Elasticsearch實戰(第2版)
- 信息學競賽寶典:基礎算法
- Oracle 11g寶典
- MATLAB/Simulink與過程控制系統仿真
- 機器學習開發者指南