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

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
主站蜘蛛池模板: 邢台市| 邢台市| 杭锦旗| 金门县| 永城市| 临清市| 曲周县| 新营市| 筠连县| 晋中市| 澎湖县| 靖江市| 宝坻区| 松滋市| 突泉县| 平阳县| 呈贡县| 崇明县| 惠水县| 阜宁县| 绥宁县| 马边| 哈尔滨市| 开江县| 周宁县| 商水县| 灌阳县| 木里| 融水| 泽普县| 顺平县| 荆州市| 福鼎市| 鄱阳县| 松原市| 金寨县| 宁安市| 鄂州市| 新沂市| 若尔盖县| 古蔺县|