- iOS 9 Game Development Essentials
- Chuck Gaffney
- 131字
- 2021-08-05 16:36:55
Hello World!
It's somewhat traditional when learning programming languages to begin with a Hello World example. A Hello World program is simply using your code to display or log the text Hello World. It's always been the general starting point because sometimes just getting your code environment set up and having your code executing correctly is half the battle. At least, this was more the case in older programming languages.
Swift makes this easier than ever, and without going into the structure of a Swift file (which we shall do later on and is also much easier than Objective-C and past languages), here's how you create a Hello World program:
print("Hello, World!")
That's it! That is all you need to have the text Hello World
appear in Xcode's debug area output.
推薦閱讀
- 程序員面試筆試寶典(第3版)
- Python編程自學手冊
- Docker and Kubernetes for Java Developers
- HoloLens Beginner's Guide
- x86匯編語言:從實模式到保護模式(第2版)
- 面向STEM的Scratch創(chuàng)新課程
- 基于差分進化的優(yōu)化方法及應用
- Internet of Things with Intel Galileo
- 3D少兒游戲編程(原書第2版)
- 正則表達式經典實例(第2版)
- 用戶體驗增長:數字化·智能化·綠色化
- Python 3.7從入門到精通(視頻教學版)
- Unity 2018 Augmented Reality Projects
- 零基礎學HTML+CSS第2版
- Mastering Bootstrap 4