- 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.
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- 趣學Python算法100例
- Mastering Python Networking
- Learning Salesforce Einstein
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- Creating Stunning Dashboards with QlikView
- C++20高級編程
- Machine Learning With Go
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- ASP.NET求職寶典
- Advanced Python Programming
- Java語言程序設計實用教程(第2版)
- 基于JavaScript的WebGIS開發
- R語言數據分析從入門到實戰
- micro:bit軟件指南