官术网_书友最值得收藏!

Chapter 3.  Say Hello

For historic reasons, the first program we usually make when learning a new programming language is a program that simply outputs the text Hello World to the console. Printing to the console is reasonably simple and is, therefore, often a good starting point to ensure that everything is set up correctly. To honor traditions, we will do the same with our very first program written in the Swift programming language:

print("Hello World")

Exciting! To achieve this, the chapter will cover the following topics:

  • Introducing a console application
  • Setting up our first Xcode playground and taking a look at the most important parts of a playground
  • Writing our first Hello World program using Swift and a playground
  • A quick look at how Xcode playground communicates errors and how we can use autocompletion to write code faster and more safely
主站蜘蛛池模板: 青海省| 宣化县| 万全县| 东丰县| 和平县| SHOW| 锡林浩特市| 莱芜市| 大荔县| 甘肃省| 桃江县| 汤阴县| 文昌市| 桃源县| 防城港市| 长葛市| 广丰县| 赤峰市| 湟中县| 龙泉市| 太原市| 都江堰市| 东安县| 奈曼旗| 凤凰县| 道孚县| 合山市| 安泽县| 民权县| 遵义县| 托里县| 双鸭山市| 长沙市| 宣汉县| 邯郸县| 靖江市| 涟源市| 金乡县| 隆子县| 兰坪| 临清市|