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

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
主站蜘蛛池模板: 万州区| 绥棱县| 扎鲁特旗| 鄂伦春自治旗| 北辰区| 和静县| 奉节县| 鄂托克旗| 宝丰县| 镇康县| 长沙市| 南投市| 集安市| 安远县| 白朗县| 平乡县| 敦化市| 岑溪市| 田东县| 河源市| 喜德县| 平泉县| 昆山市| 闽侯县| 新绛县| 吐鲁番市| 玉林市| 常山县| 神池县| 始兴县| 英超| 灵山县| 望都县| 锦屏县| 哈尔滨市| 突泉县| 榕江县| 仙游县| 新竹县| 响水县| 常德市|