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

  • Mastering Swift
  • Jon Hoffman
  • 165字
  • 2021-07-16 14:12:15

Chapter 4. Control Flow and Functions

While I was learning BASIC programming on my Vic-20, every month I would read several of the early computer magazines like Byte Magazine. I remember one particular review that I read; it was for a game called Zork. While Zork was not a game that was available for my Vic-20, the concept of the game fascinated me because I was really into Sci-Fi and fantasy. I remember thinking how cool it would be to write a game like that, so I decided to figure out how to do it. One of the biggest concepts that I had to grasp at that time was controlling the flow of the application depending on user actions.

In this chapter, we will cover the following topics:

  • What are conditional statements and how to use them?
  • What are loops and how to use them?
  • What are control transfer statements and how to use them?
  • How to create and use functions in Swift?
主站蜘蛛池模板: 大田县| 扶余县| 莆田市| 特克斯县| 巴彦淖尔市| 全南县| 太谷县| 体育| 曲松县| 蒙山县| 建湖县| 葵青区| 吕梁市| 恩施市| 玉环县| 二连浩特市| 阿克苏市| 天柱县| 天津市| 诏安县| 横山县| 忻州市| 普洱| 衡阳县| 云林县| 山阴县| 安徽省| 扬州市| 新乡市| 洞口县| 元谋县| 呼图壁县| 突泉县| 林西县| 新巴尔虎左旗| 海丰县| 太康县| 罗甸县| 隆安县| 宜昌市| 星子县|