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

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
主站蜘蛛池模板: 安阳县| 马鞍山市| 莱州市| 托克托县| 邢台县| 卫辉市| 南昌县| 崇礼县| 阿图什市| 县级市| 湖北省| 天全县| 宿松县| 凤山县| 灵璧县| 靖安县| 瑞丽市| 若尔盖县| 甘谷县| 吉首市| 鱼台县| 抚顺县| 珲春市| 公主岭市| 伊川县| 德惠市| 自贡市| 安徽省| 蒲江县| 伊通| 永靖县| 鹰潭市| 汝阳县| 上犹县| 宜城市| 栖霞市| 临泽县| 巴塘县| 灵川县| 峨山| 桓仁|