- 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.
推薦閱讀
- Puppet 4 Essentials(Second Edition)
- LabVIEW2018中文版 虛擬儀器程序設(shè)計(jì)自學(xué)手冊(cè)
- Magento 2 Theme Design(Second Edition)
- Spring Boot+Spring Cloud+Vue+Element項(xiàng)目實(shí)戰(zhàn):手把手教你開發(fā)權(quán)限管理系統(tǒng)
- 劍指MySQL:架構(gòu)、調(diào)優(yōu)與運(yùn)維
- Java EE 8 Application Development
- OpenStack Networking Essentials
- HTML5移動(dòng)Web開發(fā)
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)及考試指南
- Java高并發(fā)編程詳解:深入理解并發(fā)核心庫
- XML程序設(shè)計(jì)(第二版)
- Developing Java Applications with Spring and Spring Boot
- Python程序設(shè)計(jì)
- 狼書(卷2):Node.js Web應(yīng)用開發(fā)
- 軟件測試實(shí)驗(yàn)實(shí)訓(xùn)指南